Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

Set page to Readonly mode when it is initiated with any work flow

Hi ,

I am working on requirement to set the page in read only mode so that none can edit the page when any workflow is initiated for the page.

Could you please let me know how this can be achieved ?

Thanks,
Hari

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

currently annotations dependent on page permissions & you can't have other authors to update annotation of the locked page. There is enhancement request placed to make annotation independent of page.  You can file daycare requesting fp for enhancement request. 

8 replies

nitingupta12
New Participant
Sep 1, 2019 3:28 PM UTC

Hi Sham HC​

I too had a similar situation to store annotation while page is locked by workflow. Is there any config or existing solution present to store annotations at a different place other than page/jcr:content?

Translate
Level 8
Oct 16, 2015 2:28 AM UTC

In 5.6.1 there are out of the box workflow process steps for locking and unlocking the payload of a workflow. They aren't listed in the documentation, and I have never used them so I can't speak to any pitfalls in their use, but it is probably good first step before coding anything. You can put the lock on at the start of the workflow and the unlock on right before the publications step. 

Translate
Sham_HC
Level 10
Oct 16, 2015 2:28 AM UTC

There are various way, easiest way come to my mind is page component adopting to workflow status you will get the workflow & then set the wcmmode.

Translate
smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

The documentation does not describe a readonly mode. However -- it does support locking a page:

http://dev.day.com/docs/en/cq/current/wcm/page_publish.html

You can programmatically lock a page:

http://helpx.adobe.com/experience-manager/kb/UnlockALockedPage.html

Create a custom workflow step to lock a page. 

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

Hi ,

Thanks for your reply.

Is it possible to lock the page by enabling annotations at component level so that user/author can update only annotations when page is locked ?

With OOTB Lock option available , it is making the page to read only mode. We have requirement to change lock the page with enabled annotations.

Please assist.

Thanks,

Hari

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

Hi ,

Thanks for your reply.

Is it possible to lock the page by enabling annotations at component level so that user/author can update only annotations when page is locked ?

With OOTB Lock option available , it is making the page to read only mode. We have requirement to change lock the page with enabled annotations.

Please assist.

Thanks,

Hari

Translate
Level 2
Oct 16, 2015 2:28 AM UTC

Hi ,

Thanks for your reply.

Is it possible to lock the page by enabling annotations at component level so that user/author can update only annotations when page is locked ?

With OOTB Lock option available , it is making the page to read only mode. We have requirement to change lock the page with enabled annotations.

Please assist.

Thanks,

Hari

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

currently annotations dependent on page permissions & you can't have other authors to update annotation of the locked page. There is enhancement request placed to make annotation independent of page.  You can file daycare requesting fp for enhancement request. 

Translate