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

Removing decoration wrapper div in 6.3

Avatar

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
jakej40603950
Level 3

18-01-2019

I tried options given in the following forum post to conditionally remove (i.e. only on publish) the decoration tag that AEM puts around any component but none of them worked:

Removing extra decoration tags in CQ5.6

Is there a new way of doing this in 6.3 and above?

Thanks.

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

18-01-2019

I see no AEM Doc topic that explains this - Decoration Tag

WHy do you want to do this?

Avatar

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
jakej40603950
Level 3

20-01-2019

Many a times the HTML and associated styles may be developed by a different team and won't contain the extra divs AEM adds - and that messes up the HTML designs when you finally use them within AEM. That's why it would have been good if there's a way to turn off the decoration tags without affecting the edit-ability of the components.

Avatar

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct Reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct Reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile
cquser1
Level 6

21-01-2019

Hi,

Not sure if adding the below property helps.

cq:noDecoration="{Boolean}true"

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

21-01-2019

Decoration Tag​ mentioned by Scott should work fine if that is supposed to work on publish server only.

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,116 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,116 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

22-01-2019

AEM offers clear and simple logic controlling the decoration tags that wrap included components. Whether and how the decoration tag is rendered is defined by the combination of two factors, which this page will dive into:

  • The component themselves can configure their decoration tag with a set of properties.
  • The scripts that include components (HTL, JSP, dispatcher, etc) can define the aspects of the decoration tag with include parameters.

See Decoration Tag