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

AEM Assets select action

Avatar

Avatar
Validate 1
Level 2
anshus83799232
Level 2

Likes

4 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
anshus83799232
Level 2

Likes

4 likes

Total Posts

8 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 3
Boost 1
Affirm 1
View profile
anshus83799232
Level 2

20-05-2018

Hi All,

Need help with a requirement. I have to hide certain select actions in assets.html for some particular user group (hide Manage tags, To Collection, Copy etc). Currently we get all the below options on selection.

Screen Shot 2018-05-21 at 10.13.27 AM.png

I overlayed the action selection node and tried hideChildren but it hides these options for all the users including admin (which is obvious so I can't use this way) and I also tried applying rep:policy but somehow these policies don't work and the options load from some render condition JSPs. I cannot modify these OOTB JSPs so please suggest me something which will work here. I am not sure how to do it via JS. Can anyone help me on this?

Replies

Avatar

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

435 likes

Total Posts

571 posts

Correct Reply

190 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile

Avatar
Give Back 50
MVP
Vijayalakshmi_S
MVP

Likes

435 likes

Total Posts

571 posts

Correct Reply

190 solutions
Top badges earned
Give Back 50
Give Back 5
Ignite 10
Ignite 5
Ignite 3
View profile
Vijayalakshmi_S
MVP

22-05-2018

HI,

Can you try adding rendercondition for the actions(overlayed in apps) that you would like to show/hide for certain user groups.

OOB : PrivilegeRenderCondition - PrivilegeRenderCondition ("The Adobe AEM Quickstart and Web Application.")

Usage:

  • Create a node named "granite:rendercondition" under the action desired
    • Add properties named "sling:resourceType" -> granite/ui/components/coral/foundation/renderconditions/privilege
    • path and privileges - indicatiing path and privilege types to refrain user groups.

You can also try creating custom render conditions based on your need and add it to actions as mentioned in the usage where

  • sling:resourceType would point to the render condition JSP that you have written.
  • custom properties that you would like to fetch in your JSP can be added and same would be available in ComponentConfig     (cmp.getConfig() where cmp -> ComponentHelper object available from global.jsp)

Reference for writing custom Render condition : /libs/granite/ui/components/coral/foundation/renderconditions/privilege/privilege.jsp

Avatar

Avatar
Give Back 10
Level 2
mkumar
Level 2

Likes

3 likes

Total Posts

32 posts

Correct Reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile

Avatar
Give Back 10
Level 2
mkumar
Level 2

Likes

3 likes

Total Posts

32 posts

Correct Reply

5 solutions
Top badges earned
Give Back 10
Give Back 5
Give Back 3
Give Back
Ignite 1
View profile
mkumar
Level 2

08-08-2019

Hello Community,

I have similar requirement. I need to provide the Delete button only if the asset is created by the editing user and should be hidden to rest of the users.

I am unable to achieve this through render condition actions as it's a generic to asset details html/page.

Please let me know if your suggestions.

Thanks,

Vinay

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,140 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,260 likes

Total Posts

3,140 posts

Correct Reply

886 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

08-08-2019

you need to overlay delete button and add one more renderrer with AND condition at /apps/dam/gui/content/assets/jcr:content/actions/selection/delete/granite:rendercondition like 

/libs/dam/gui/content/assets/jcr:content/actions/selection/create/granite:rendercondition