Wrapping DIV's not generating for cq:includes | Community
Skip to main content
Level 4
Jun 30, 2019 1:58 PM UTC
Solved

Wrapping DIV's not generating for cq:includes

Hi,

      When we include any component in another component using below cq include, and when this component is used in a page.

<cq:include path="abc" resourceType="/xyz/components/content/pqr"/>

The above will add a wrapping div to generated HTML(DOM) like this

<div class="abc pqr">

But some configuration is not allowing in one of our environment in generating above wrapping div.

Could you please let us know the configuration that allows the creation of above wrapping div always.

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 30, 2019 5:16 PM UTC

You should check components cq:htmlTag node, which is used to add wrapping div and other attributes.

/xyz/components/content/pqr/cq:htmlTag

Arun Patidar

2 replies

antoniom5495929
Level 7
Jul 1, 2019 10:19 AM UTC

Hi,

as you can see from documentation  in [0] decoration are managed in different level.

I suggest you to check the documentation in [0] into the section related to JSP (which I think is your case).

Let us know if you need more info.

[0] Decoration Tag

Thanks,

Antonio

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 30, 2019 5:16 PM UTC

You should check components cq:htmlTag node, which is used to add wrapping div and other attributes.

/xyz/components/content/pqr/cq:htmlTag

Translate
Arun Patidar