wcmmode in components, DOM loads in preview mode | Community
Skip to main content
Level 2
Jul 12, 2021 6:56 AM UTC
Solved

wcmmode in components, DOM loads in preview mode

Hi Team,

 

Drag and drop components into the page and don't author it. Go to preview mode the Dom gets loaded.

How do I avoid this ?

 

Thanks,

Soujanya.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Dipti_Chauhan
Dipti_ChauhanAccepted solution
New Participant
Jul 12, 2021 7:45 AM UTC

Hi @shetty119 

 to remove AEM generated wrapper div you can setcq:noDecoration  property. You can find more details here: https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/decoration-tag.html?lang=en

 

For custom generated dom you can simply put logic based on your authored properties.

 

Hope this helps!!

Thanks

Dipti

1 reply

Dipti_Chauhan
Dipti_ChauhanAccepted solution
New Participant
Jul 12, 2021 7:45 AM UTC

Hi @shetty119 

 to remove AEM generated wrapper div you can setcq:noDecoration  property. You can find more details here: https://experienceleague.adobe.com/docs/experience-manager-65/developing/components/decoration-tag.html?lang=en

 

For custom generated dom you can simply put logic based on your authored properties.

 

Hope this helps!!

Thanks

Dipti

Translate