Enable Locking/Unlocking for Assets | Community
Skip to main content
alexandrad27705
November 12, 2015

Enable Locking/Unlocking for Assets

  • November 12, 2015
  • 3 replies
  • 7097 views

Hi,

For our AEM 6.1 instance we need to make sure that assets (/assets.html/content/dam) on the Touch UI can be locked and unlocked by authors. Is there a way to enable this or does this have to be custom implemented?

I know that there is a "Locking Action" for Asset Editor pages which we don't want to use. We need to hook in  locking/unlocking feature into the DAM toolbar in the Touch UI.

I found these instructions - http://aemtips.blogspot.com.au/2013/05/how-to-enable-lockunlock-features-for.html  - but these seem to be for an older CQ version and it did not work for AEM 6.1.

Thanks,

Alex

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

May 5, 2016

Hi Alex, 

Are you able to solve this problem? If yes, can you please share some info on the same.

Thanks

Sainath

kautuk_sahni
Community Manager
Community Manager
May 5, 2016

Hi 

Please have a look at this :- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__idra-hi_guys_i_amusi.html

//How to enable Lock/Unlock for DAM Assets for Touch Optimised UI?

 

Documentation :- https://docs.adobe.com/docs/en/aem/6-0/administer/content/assets/assets-finder-editor.html#Adding Asset Editor Actions

//

     
LockingLets users lock an asset. This functionality is not enabled by default and needs to be enabled in the list of components.

 

I hope this would be of some help to you.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
May 9, 2016

Hi Kautak,

Thanks for the reply.

The link you shared is talking about  Asset Editor/Asset Share. 

But I am looking to enable Lock/Unlock in the Assets Touch UI console, not on the Asset Editor/Share page.

Thanks

Regards,

Sainath

Ashokkumar_TA
May 10, 2016

These 2 nodes has the property to enable lock/unlock functionality.

/libs/wcm/core/content/damadmin/actions/lock

/libs/wcm/core/content/damadmin/actions/unlock

Set the property 'disabled' under these nodes to true or false to disable or enable the respective functionality,

MaxBarrass
October 13, 2016

Just to close this topic off, its posible to update Classic UI DAM ADMIN to have the Lock and Unlock Tool bar items.

You will need to enable LOCK and UNLOCK nodes.

The changes you will need to make:

  1. disabled=false
  2. context=toolbar

 

This will not enable this in Touch UI. To do this in Touch UI you will need to do a bit of Overlaying, here is the scope of work for this:

  1. Add button to Rail
  2. Create new Modal
  3. Update various Views (Card,List,Colum) to show status of Lock.

I have done this and it works a treat! I would allow at least a day to complete this task.

TouchUI JSON for completness

http://localhost:4502/libs/wcm/core/content/damadmin/actions/lock.tidy.json

                                                            
{
 "jcr:primaryType": "nt:unstructured",
 "privileges": ["update"],
 "conditions": [
 "CQ.wcm.SiteAdmin.hasListSelection",
 " CQ.wcm.SiteAdmin.lockable"
 ],
 "target": "CQ.wcm.SiteAdmin.getTargetFromList",
 "cls": "cq-siteadmin-lock",
 "text": "Lock",
 "disabled": false,
 "handler": "CQ.wcm.SiteAdmin.lockNode",
 "context": ["toolbar"],
 "iconCls": "cq-siteadmin-lock-icon"
 }

 

http://localhost:4502/libs/wcm/core/content/damadmin/actions/unlock.tidy.json

                                                             
 {
 "jcr:primaryType": "nt:unstructured",
 "privileges": ["update"],
 "conditions": [
 "CQ.wcm.SiteAdmin.hasListSelection",
 " CQ.wcm.SiteAdmin.unlockable"
 ],
 "target": "CQ.wcm.SiteAdmin.getTargetFromList",
 "cls": "cq-siteadmin-unlock",
 "text": "Unlock",
 "disabled": false,
 "handler": "CQ.wcm.SiteAdmin.unlockNode",
 "context": ["toolbar"],
 "iconCls": "cq-siteadmin-unlock-icon"
 }