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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

Remove default DIV for component

Avatar

Level 2

I would like to remove the default DIV created for the each component. I have tried 'cq:nodecoration' true property this works fine but I'm unable to edit the component. Do we have any solution to remove the extra DIV. I'm using AEM6.0 SP2

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

can you revert your nodecoration code and try including

if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) { IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE); }

in your global,jsp, so that it will be for all components

0 Replies

Avatar

Correct answer by
Level 10

Hi,

can you revert your nodecoration code and try including

if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) { IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE); }

in your global,jsp, so that it will be for all components

Avatar

Level 8

You could try adding a cq:editConfig node and setting the edit type to editbar and placing the edit options there.

Avatar

Level 2

Thanks for your response. I already checked that option, no luck.