How to remove default DIV generated by cq5/ aem for component ?

 

Question: Do we have any solution to remove the extra DIV ?

Answer: Add 

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 available for all components

One thought on “How to remove default DIV generated by cq5/ aem for component ?

  1. You have to use the ‘ cq:nodecoration ‘ preoperty in your parent component, from which, all your components inherit.

     

Leave a Reply

Your email address will not be published. Required fields are marked *