Does anyone have official documentation of cq:htmlTag? | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
murilod74686477Accepted solution
Level 3
Aug 10, 2016 12:00 PM UTC

Replace the automatically include outer div.

I was missing cq:tagName.

My issue is solved, thank you for the help.

Just a head-ups as the documentation is broken.

14 replies

Level 2
Jun 14, 2018 2:30 PM UTC

Publish instance is working fine.

Issue with only the Author instance and only when I edit and save the dialog of the component.

The moment I hit save on the dilog, all  the elements in the components gets hidden and the parsys breaks until I refresh the page again.  After the page refresh It works fine.

Translate
kautuk_sahni
Employee
Jun 14, 2018 2:25 PM UTC

Make sure you have component published. check the Publisher instance.

-kautuk

Translate
Kautuk Sahni
arunpatidar
New Participant
Jun 14, 2018 2:20 PM UTC
Arun Patidar
Level 2
Jun 14, 2018 1:50 PM UTC

Hi,

I completely wanted to remove the auto generated <div> tag, so I made the cq:tagName = "".

But in author instance, when ever I save the dilog, the component gets hidden and the parsys looks broken until the page is refreshed again manually.

This is happening in 6.3.2.0.

Any help or suggestion to avoid it ?

Translate
Level 2
Jun 14, 2018 1:47 PM UTC

Hi, I completely wanted to remove the auto generated <div> tag, so I made the cq:tagName = "".

But in author instance, when ever I save the dilog, the component gets hidden and the parsys looks broken until the page is refreshed again manually.

This is happening in 6.3.2.0.

Any help or suggestion to avoid it ?

Translate
aaaa2222
New Participant
Jul 26, 2017 3:30 AM UTC

hi kirsh1442,

were you able to find solution for your problem of adding dynamic values of component content node path as a data attribute to the auto generated DIV?

Translate
Level 2
Apr 6, 2017 9:54 AM UTC

Hi All,

We have used the cq:htmlTag node to override the CQ generated div for the component.

Its working fine in author instance, but however it is not working in publish instance, we are getting the auto-generated CQ div class instead of our overridden class.

Please help me on the urgent basis.

Thanks,

Mayur Sharma

Translate
kautuk_sahni
Employee
Aug 17, 2016 4:34 AM UTC

We have created a documentation bug for this. Documentation team will work on this. Once done i will inform you.

~kautuk

Translate
Kautuk Sahni
krish1442
Level 2
Aug 16, 2016 10:34 AM UTC

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.

Translate
Tuhin_Ghosh
Level 8
Aug 11, 2016 1:22 AM UTC

if your issue is solved kindly close the ticket and let Scott know about the broken topic so that it could be fixed.

Translate