Expand my Community achievements bar.

Flatten ditamap before generating custom output preset

Avatar

Level 2

Hi,


I have to flatten the ditamap and its topic before generating the custom output preset.

 

After choosing the custom preset in the output file i need to get flattened file.

 

please provide me solution for this requirement.

 

Mano4_0-1705516882588.png

 

  •  

 

4 Replies

Avatar

Community Advisor

To flatten a DITA map before generating a custom output preset you can follow these steps:

  1. Enable Flattening: Check the property flattening.enabled in the OSGi configuration com.adobe.dxml.flattening.FlatteningConfigurationService. This will enable the flattening feature in AEM.

  2. Flatten at a Node: To flatten at a specific node, add <flatten>true</flatten> in the corresponding ditaelement mapping. This will flatten the DITA map at the specified node.

  3. Generate Output: After flattening the DITA map, you can generate the output using your custom output preset. In the Output Presets tab, select the output preset that you want to use to generate the output. Click Edit. From the Properties drop-down list, select the properties that you want to pass on to the publishing process.


    References
    https://www.bounteous.com/insights/2022/12/13/dita-way-generating-aem-pages
    https://experienceleague.adobe.com/docs/experience-manager-guides/using/install-guide/on-prem-ig/out...

Avatar

Employee

@pulkitvashisth : The requirement from use is not about flattening the nodes in AEM Sites output - but getting the flattened ditamap (folder structure) before it is processed for publishing via DITA-OT. the same has been discussed in another post [1]

 

@Mano4 :should this be marked duplicate as I can see the issue is already being discussed in post [1]

 

[1]:

https://experienceleaguecommunities.adobe.com/t5/experience-manager-guides/flattening-aem-ditamap-be...

Avatar

Level 2

We do not want to apply this globally. Its only for Specific Presets that the output should be flattened.

Avatar

Administrator

@Mano4  Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

 



Kautuk Sahni