Expand my Community achievements bar.

Flatten ditamap before generating custom output preset


Level 2


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.






4 Replies


Level 7

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.




@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]





Level 2

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



@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