Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

DAM admin delete button functionality customization

Avatar

Avatar
Validate 1
Level 2
radhakrishnan72
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
radhakrishnan72
Level 2

Likes

4 likes

Total Posts

28 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
radhakrishnan72
Level 2

23-01-2018

Hi everyone,

                     i am trying to customize delete button functionality. I copied  /libs/cq/ui/widgets/source/widgets/wcm/DamAdmin.Actions.js to /apps folder.

I have to call custom servlet, when delete button is hit for any asset/node deletion. It still calls out of the box delete logic internally. I could not find where exactly i have to call my servlet when delete button is clicked. Could anyone suggest me?

Thanks & Regards,

Radhakrishna

View Entire Topic

Avatar

Avatar
Validate 1
Level 3
Qamar_khan
Level 3

Likes

17 likes

Total Posts

30 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
Level 3
Qamar_khan
Level 3

Likes

17 likes

Total Posts

30 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Qamar_khan
Level 3

14-09-2018

Hello Radhakrishna,

     I need more help on this to override the delete action button.

I have done overlay of /app/dam/gui/coral/components/admin/clientlibs/actions/js/delete.js and trying to calling the delete action on asset selection button as /apps/dam/gui/content/assets/jcr:content/actions/selection/myaction

it  calling default "Delete Asset" dialog successfully.

But I want to handle some action on "Delete" button can you help me more on this. The properties of myaction button as below

1571388_pastedImage_8.png

Thanks

Qamar

" many thanks for your quick help. I have got the location where this delete location function deleteResources(force, type) in /libs/dam/gui/coral/components/admin/clientlibs/actions/js/delete.js  to do it in Touch UI. I could take it from here for my customization."