Prevent AEM Site Output Present from Adding ditamap to end of URL | Community
Skip to main content
December 2, 2022
Solved

Prevent AEM Site Output Present from Adding ditamap to end of URL

  • December 2, 2022
  • 1 reply
  • 1303 views

When we are using the AEM Site output preset for our ditamap files, when the structure is created in AEM Sites, the root folder created from the ditamap has "-ditamap" appended to the page/folder name in AEM. We were looking for some setting to prevent this, but can't find one.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by DivrajSingh

I was able to verify that this works as explained. However we did find one issue with it. With Site Names that are longer than 51 characters, the generation will cut off the text after the 51st character. We then have to manually go into Sites and rename (move) the page and re-edit the name to the longer name. This fixes and allows for the longer name in Sites, but is a pain to have to fix these longer names after Generation. Not sure if there is a way to file a bug or get this fixed in the AEM Sites pre-set.


@chrisd_kyndryl : please refer property "nodename.maxlength" in the configuration "com.adobe.fmdita.common.SanitizeNodeNameImpl" where the default length of page name is set to 50 - you can change that to desired length.

 

1 reply

Adobe Employee
December 2, 2022

In the Output preset, "Site Name" is used as the root folder name. To remove the default -ditamap from the root folder name, you can specify your custom site name.

December 2, 2022

So to make sure I understand, whatever we type in that field will be the name of the folder (ditamap) that will contain all the underlying topics?

Adobe Employee
December 2, 2022

Yes, that's correct.