How to customize create button on content/dam | Community
Skip to main content
Prashardan
Level 4
August 27, 2024
Solved

How to customize create button on content/dam

  • August 27, 2024
  • 1 reply
  • 559 views

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.
Best answer by konstantyn_diachenko

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:

 

1 reply

konstantyn_diachenko
Community Advisor
konstantyn_diachenkoCommunity AdvisorAccepted solution
Community Advisor
August 27, 2024

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.
Prashardan
Level 4
August 30, 2024

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.