AEM generates automatic DIV with component name as a class. What service does it? | Community
Skip to main content
Level 2
August 8, 2016

AEM generates automatic DIV with component name as a class. What service does it?

  • August 8, 2016
  • 0 replies
  • 822 views

We can use cq:htmlTag to write our custom tags and attributes to be added to the DIV as mentioned in the below page.

https://helpx.adobe.com/in/experience-manager/kb/ComponentDiv.html

But, the question is we can only add static values where I would like to add dynamic values like I want to add component content node path as a data attribute to the auto generated DIV

For example,

<div class="title"></div>

Should be

<div class="title" res="/content/geometrixx/en/jcr:content/par/title"></div>

Any references are will be helpful.

Thanks in advance.

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