Remove default DIV for component | Community
Skip to main content
October 16, 2015
Solved

Remove default DIV for component

  • October 16, 2015
  • 3 replies
  • 1225 views

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.
Best answer by edubey

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

edubey
edubeyAccepted solution
October 16, 2015

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

October 16, 2015

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

RajyAuthor
October 16, 2015

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