Flattening AEM ditamap before custom preset generation | Community
Skip to main content
Level 2
January 17, 2024
Solved

Flattening AEM ditamap before custom preset generation

  • January 17, 2024
  • 2 replies
  • 1484 views

Hi,

 

Prior to creating the custom preset, I need the ditamap to be flattened(All files in one single folder without any subdirectories). Can this requirement be met in any way?

 

I need to use CUSTOM output preset option not AEM sites

 

 

 

 

 

 

 

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

@mano4 : you can use Download MAP API (documented [1]) where flattening is an option. With downloaded map you can run the custom DITA-OT plugin.

 

 

[1]: check "Initiate export for DITA map with dependents" use parameter flatFS=true

https://experienceleague.adobe.com/docs/experience-manager-guides/using/api-reference/dita-map-management.html?lang=en#initiate-export-for-dita-map-with-dependents

2 replies

narendragandhi
Community Advisor
Community Advisor
January 17, 2024

Yes @mano4 this should be possible. You can refer the similar thread for more details - https://experienceleaguecommunities.adobe.com/t5/experience-manager-guides/ditaelements-flattening-aem-node-structure/m-p/459120

 

There is a separate community for AEM Guides as well - https://experienceleaguecommunities.adobe.com/t5/experience-manager-guides/ct-p/aem-xml-documentation

 

Thanks

Narendra

Mano4Author
Level 2
January 17, 2024

Hi Narendragandhi,

 

Thanks for providing me reference, I am not going to generate AEM site 

 

I will be generating using CUSTOM preset before choosing this option I need to flatten the ditamap

narendragandhi
Community Advisor
Community Advisor
January 17, 2024

Sorry i missed the CUSTOM preset part. @divrajsingh @aswinilakshminarayanan any suggestions on how this could be achieved ?

Mano4Author
Level 2
January 17, 2024

Hi Raja,

 

Thanks for your response. I am looking to flatten the ditamap before generating custom output preset. I am not going to use aem sites.

DivrajSingh
Adobe Employee
DivrajSinghAdobe EmployeeAccepted solution
Adobe Employee
January 20, 2024

@mano4 : you can use Download MAP API (documented [1]) where flattening is an option. With downloaded map you can run the custom DITA-OT plugin.

 

 

[1]: check "Initiate export for DITA map with dependents" use parameter flatFS=true

https://experienceleague.adobe.com/docs/experience-manager-guides/using/api-reference/dita-map-management.html?lang=en#initiate-export-for-dita-map-with-dependents