I'm using/customizing AEM core components but they generate a bunch of unused divs, is there a way to turn these off or remove them.
The automatically rendered HTML element can be controlled via Decoration Tag, out of the box behavior by AEM.
Visit Adobe's documentation about Decoration Tags here - https://docs.adobe.com/content/help/en/experience-manager-64/developing/components/decoration-tag.ht...
Thanks for the quick response.
Tried the cq:noDecoration = true this method works but you cannot edit the component in the edit mode, is there another way to use/access the property in the HTL directly
You can create a java model to check preview/publish mode and add decoration tag.
Hello Shawn, Here's a quick fix, try this:1. use cq:noDecoration
2. add custom code into HTL as follows:
Thanks, @BrianKasingli but no luck I still cannot edit the component in the template
What does the rendered code look like after you apply this?Try this:
// show div when in edit mode, else hide.// I've added the section class && changed the conditional