April 7, 2020
Estimated Post Reading Time ~

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


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.