Managed by | Updated .
Sometimes there is a need to present a different category name to the user that what was generated from the source data.
There are a couple of techniques that can be used to achieve this.
Alter the category names prior to indexing
The first technique involves modifying the data that has been gathered so that the indexer stores the correct labels within the index.
This can be achieved by writing a crawl (groovy) filter that corrects the labels as the files are gathered.
This is arguably the better approach as the index contains the correct values.
Alter the category names at presentation time
Another technique is to alter the category names as they are being presented. The method of implementing this depends on the UI that is being used.
A user interface hook script can be used to update the category labels that are stored in the Modern UI data model.
Use the <s:CategoryRename> form tag to rename categories.