Add the below code in to global.jsp, which you include for all the component jsp's.
if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);
This will not generate any more extra <div> tags for any number of components you add.
if (WCMMode.fromRequest(request) != WCMMode.EDIT && WCMMode.fromRequest(request) != WCMMode.DESIGN) {
IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);
This will not generate any more extra <div> tags for any number of components you add.
Nice one.. This will be helpful.
ReplyDelete