Skip to main content
Community Advisor
Oct 16, 2015 2:26 AM UTC
Solved

Display parsys in readonly mode

I want to display conditional edit for parsys

I am in Edit mode but I have a jsp variable readOnly, if this is true. I want to display parsys in readonly mode without gray border.

It should show all the components already dropped earlier in read only mode, but users cannot add any new component nor should see

<script type="text/javascript" id="cq-gen495">
CQ.WCM.edit({ ......});
</script>


            <%if(readOnly){ %>
                <cq:include path="<%=path%>" resourceType="/libs/foundation/components/parsys" /> <!---  but display only view no new component --->
           <%}else%>

            <cq:include path="<%=path%>" resourceType="/libs/foundation/components/parsys" />

        <%}%>
Can you please let me know the best approach to do this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
MshajiAccepted solution
Community Advisor
Oct 16, 2015 2:26 AM UTC

I got the answer in the following thread

https://forums.adobe.com/thread/1153320?tstart=0

1 reply

MshajiCommunity AdvisorAuthorAccepted solution
Community Advisor
Oct 16, 2015 2:26 AM UTC

I got the answer in the following thread

https://forums.adobe.com/thread/1153320?tstart=0

Translate