Quantcast
Channel: CQ 5
Viewing all articles
Browse latest Browse all 35

[AEM] hide parsys on live copy page

$
0
0
Purpose: I want to hide the parsys in the live copy page
Solution:
Add this script below the code include parsys
<cq:include path="par"resourceType="foundation/components/parsys"/>
<c:if test="${wcmMode ne 'PREVIEW'&& wcmMode ne 'DISABLED'}">
<script type="text/javascript">if (Granite && Granite.author) {
Granite.author.getEditableConfigNode("${currentNode.path}/par/*").remove();}
</script></c:if>

Viewing all articles
Browse latest Browse all 35

Trending Articles