Display parsys in readonly mode | Community
Skip to main content
Community Advisor
October 16, 2015
Solved

Display parsys in readonly mode

  • October 16, 2015
  • 1 reply
  • 659 views

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.
Best answer by Mshaji

I got the answer in the following thread

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

1 reply

MshajiCommunity AdvisorAuthorAccepted solution
Community Advisor
October 16, 2015

I got the answer in the following thread

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