Expand my Community achievements bar.

SOLVED

How to customize create button on content/dam

Avatar

Level 4

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. 

 

Prashardan_0-1724765792794.png

 

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 7

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:

konstantyn_diachenko_0-1724778719228.png

 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

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:

konstantyn_diachenko_0-1724778719228.png

 

Avatar

Level 4

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.