Skip to main content
Prashardan
Level 4
August 27, 2024
해결됨

How to customize create button on content/dam

  • August 27, 2024
  • 2 답변들
  • 587 조회

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.

이 주제는 답변이 닫혔습니다.
최고의 답변: 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:

 

2 답변

konstantyn_diachenko
Community Advisor
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
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.