ditaelements - Flattening AEM node structure | Community
Skip to main content
New Member
July 1, 2022
Solved

ditaelements - Flattening AEM node structure

  • July 1, 2022
  • 1 reply
  • 1031 views

While mapping ditaelements to AEM components, p nodes are not flattened, even though the flatten tag is there by default for topic/p in /libs/fmdita/config/elementmapping.xml. 

 

According to the documentation, the p nodes will be flattened, if we enable it in the configuration (https://helpx.adobe.com/content/dam/help/en/xml-documentation-solution/4-0-3/Adobe-Experience-Manager-Guides_UUID_Installation-Configuration-Guide_EN.pdf).

 

Did the below steps to enable the flattening.

 

1. Enabled "flattening.enabled"  in com.adobe.dxml.flattening.FlatteningConfigurationService

2. Regenerated AEM site

 

But still

  • the node structure is coming expanded 
  • the resourcetype still remains same and not changed to fmdita/components/flattened
  • flatten property is not created

 

Is there anything else I am missing here? 

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

@aryasankarivs : after making changes to elementmapping.xml - did you also edit/save the utils bundle or com.adobe.fmdita.config.ConfigManager configuration? (this is also called out in Installation and Configuration Guide)

As that step is necessary to clear the cache from earlier saved elementmapping.xml 

1 reply

DivrajSingh
Adobe Employee
DivrajSinghAdobe EmployeeAccepted solution
Adobe Employee
August 31, 2022

@aryasankarivs : after making changes to elementmapping.xml - did you also edit/save the utils bundle or com.adobe.fmdita.config.ConfigManager configuration? (this is also called out in Installation and Configuration Guide)

As that step is necessary to clear the cache from earlier saved elementmapping.xml 

New Member
October 18, 2022

@divrajsingh , thank you responding. Seems like I missed resaving configuration at that time.