A repository item type can have subtypes that include additional properties that are not part of the base item type. By default, if any itemType
has subtypes that are not already explicitly defined in the urlFormatStrings
map, a duplicate entry for each subtype is automatically added to the map. This allows subtypes to inherit a root string from their parent, if a root string does not exist for that type.
To prevent a subtype from inheriting from its parent, you must define an explicit mapping for the subtype and set its value to an empty root string. The following example creates an explicit mapping so media-external
items do not inherit root strings from the parent media
:
# One of the subtypes of media is media-external. Create an explicit mapping # so media-external items do not inherit media's root string. urlFormatStrings=ProductCatalog:media.url=/crsdocroot,\ ProductCatalog:media-external.url=,\ ContentManagementRepository:mediaContent.url=/crsdocroot