Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Wrapping DIV's not generating for cq:includes

Avatar

Avatar
Validate 10
Level 3
sreenivasula
Level 3

Likes

7 likes

Total Posts

95 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile

Avatar
Validate 10
Level 3
sreenivasula
Level 3

Likes

7 likes

Total Posts

95 posts

Correct Reply

0 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 1
View profile
sreenivasula
Level 3

30-06-2019

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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

914 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,345 likes

Total Posts

3,220 posts

Correct Reply

914 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

30-06-2019

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

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

Answers (1)

Answers (1)

Avatar

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

90 likes

Total Posts

212 posts

Correct Reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

90 likes

Total Posts

212 posts

Correct Reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
antoniom5495929
Level 6

01-07-2019

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