Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
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

View solution in original post

3 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.