Skip to main content
Prashardan
Level 4
Aug 27, 2024 1:37 PM UTC
Solved

How to customize create button on content/dam

Hi Team

 

I would like do some customizations on create button on /content/dam. Could you please guide me how to do that. My requirement is to delete folder option. 

 

 

Thanks in advance.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
konstantyn_diachenko
konstantyn_diachenkoAccepted solution
Community Advisor
Aug 27, 2024 5:12 PM UTC

Hi @prashardan, 

The /assets.html is a short link for /libs/dam/gui/content/assets. The list of Create actions are listed under: /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items.

Create folder action: /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfolder.

So, you need to do overlay of this action and add sling:hideResource=true.

As a result you will get something like this:

 

Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.

2 replies

konstantyn_diachenko
Community Advisor
konstantyn_diachenkoCommunity AdvisorAccepted solution
Community Advisor
Aug 27, 2024 5:12 PM UTC

Hi @prashardan, 

The /assets.html is a short link for /libs/dam/gui/content/assets. The list of Create actions are listed under: /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items.

Create folder action: /libs/dam/gui/content/assets/jcr:content/actions/secondary/create/items/createfolder.

So, you need to do overlay of this action and add sling:hideResource=true.

As a result you will get something like this:

 

Translate
Kostiantyn Diachenko, Community Advisor, Certified Senior AEM Developer, creator of free AEM VLT Tool, maintainer of AEM Tools plugin.
Prashardan
Level 4
Aug 30, 2024 9:07 AM UTC

Many thanks for your reply. It worked perfectly.


I want to do one more customization that is based on user I want to hide few options under create button. Any leads please.

Translate