Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Enable Locking/Unlocking for Assets

alexandrad27705
Level 2
Level 2

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

7 Replies
Sainath_Appam
Level 2
Level 2

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

Hi 

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

//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

Sainath_Appam
Level 2
Level 2

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
Level 2
Level 2

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,

Sainath_Appam
Level 2
Level 2

Thanks Ashok for the reply. 

But the information you provided works only for the Classic UI. I am looking to enable lock/unlock in Touch UI Assets.

Do you have any info on that?

smacdonald2008
Level 10
Level 10

For those use case - I would use classic UI to lock as pointed out by Ashok 

MaxBarrass
Level 3
Level 3

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"
 }