Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

Remove default DIV for component

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
edubey
edubeyAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

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

3 replies

RajyAuthor
Level 2
Oct 16, 2015 2:28 AM UTC

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

Translate
Level 8
Oct 16, 2015 2:28 AM UTC

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

Translate
edubey
edubeyAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

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

Translate