URL template mappers are used by the ItemLink servlet bean to map repository item descriptors to URL templates. The servlet bean has an itemDescriptorNameToMapperMap property that maps item descriptors to URL template mappers. For example:

itemDescriptorNameToMapperMap=\
    product=/atg/repository/seo/ProductTemplateMapper,\
    category=/atg/repository/seo/CategoryTemplateMapper

The template mappers themselves have a templates property that is a list of URL templates. So, in this example, the product item descriptor is associated with the templates listed by the ProductTemplateMapper component, and the category item descriptor is associated with the templates listed by the CategoryTemplateMapper component. When ItemLink generates a link to a specific repository item, it uses this mapping to determine the URL template to use.

 
loading table of contents...