Flatten ditamap before generating custom output preset | Community
Skip to main content
Level 2
January 17, 2024

Flatten ditamap before generating custom output preset

  • January 17, 2024
  • 2 replies
  • 1124 views

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.

 

 

  •  

 

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

2 replies

pulkitvashisth
Community Advisor
Community Advisor
January 22, 2024

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/output-gen-config/conf-output-generation.html%3Flang%3Dnl

DivrajSingh
Adobe Employee
Adobe Employee
January 23, 2024

@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-before-custom-preset-generation/td-p/645545

Level 2
January 24, 2024

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

kautuk_sahni
Community Manager
Community Manager
January 23, 2024

@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