Hello,
I have a problem in the parsys: for example, in my sidebar, in preview or disabled mode, the wrapper (cq:htmlTag) of the first component is not closed, so it wrap also other components and it brokes my html.
I found several documents and guides (for example this: AEM | Remove wrapper HTML Tags in preview mode – Need is the mother of invention … , but also others), that say to set in my global.jsp this snippet of code:
<c:choose>
<c:when test="${ requestScope['com.day.cq.wcm.api.WCMMode']=='EDIT' || requestScope['com.day.cq.wcm.api.WCMMode']=='DESIGN'}">
<c:if test="${componentContext!=null}">
<% componentContext.setDefaultDecorationTagName("div"); %>
</c:if>
</c:when>
<c:otherwise>
<c:if test="${componentContext!=null}">
<% componentContext.setDefaultDecorationTagName(""); %>
</c:if>
</c:otherwise>
</c:choose>
The problem is that I already have a similar snipper of code, that disable decoration if it's not edit or design mode, but it not working.
I have AEM 6.3.
Thanks in advance, Daniel