Change default 'Create' dropdown menu to only include 'File' and 'Folder' | Community
Skip to main content
Level 2
June 14, 2023

Change default 'Create' dropdown menu to only include 'File' and 'Folder'

  • June 14, 2023
  • 2 replies
  • 1641 views

How can we change the default 'Create' dropdown menu to only include 'File' and 'Folder' ?

 

 

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

2 replies

DPrakashRaj
Community Advisor
Community Advisor
June 14, 2023

Which default create drop-down menu are you referring to? Can you be more specific 

mbrennanAuthor
Level 2
June 14, 2023

In the Assets section, when creating an asset you can see all of these options in the drop down. We would like to remove them so that only 'Folder' and 'File' remain.

 

DPrakashRaj
Community Advisor
Community Advisor
June 14, 2023

Its not recommended to remove those options at these OOTB functionality will help you in achieving other goals as name suggest in the drop down list but if you still wants to overwrite it you can do it by overriding /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items node inside you app folder 

aanchal-sikka
Community Advisor
Community Advisor
June 15, 2023

Hello @mbrennan 

 

You can use granite:rendercondition to hide the options for a specific group. Please don't hide for all.

Example: 

/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/folderupload/granite:rendercondition

 

@dprakashraj  has already shared the location of Create dropdown

Aanchal Sikka
mbrennanAuthor
Level 2
June 15, 2023

Hello @aanchal-sikka thank you so much, this is a great direction.

 

I have defined a group which contains all the users I do not want to be able to see

/libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfragment/granite:rendercondition

 

However this is all I see

I previously had an ACL access policy in that window which was all which I deleted, and now I can't get it back.

 

mbrennanAuthor
Level 2
June 15, 2023

I tried reverting the node but that did not work.