April 7, 2020
Estimated Post Reading Time ~ < 1 Min

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
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

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

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.