AEM Assets Customization - Delete action customization | Community
Skip to main content
March 15, 2016
Solved

AEM Assets Customization - Delete action customization

  • March 15, 2016
  • 4 replies
  • 2162 views

Hi AEM Community,

We want to have "recyclebin" kinda folder in our dam. We need to customize the delete action in AEM Assets. When we delete, the asset should basically be moved to a designated folder like "recyclebin".  When someone deletes an asset it should get removed from its folder BUT NOT get deleted from the repo. It should move to recyclebin. Only select user should be allowed to access and delete asstes from recyclebin.

Any pointers please?

Thanks

RS

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 edubey

Its always recommended never change anything in /libs

This property will be added to individual asset which will be sent to recycle bin,

I guess, it will not required java changes, 

Take a look at this menu, you need to add one option here for sending to recycle bin, once user click that, remove asset from view and add a property to it

To get details knowledge,

See these documentation which talks about customization of touch ui console

https://docs.adobe.com/docs/en/aem/6-0/develop/extending/customizing-consoles-touch.html

https://docs.adobe.com/docs/en/aem/6-0/develop/extending/customizing-page-authoring-touch.html

4 replies

edubey
March 17, 2016

Hi,

AFAIK, There is no ootb feature for these type of implementation.

You need to do for few customizations.

1. Add a option for every asset to send it to recycle bin

2. When user add asset to recycle bin, you can probably add a property to asset to identify. Once property for recycle bin = true is added, do not show this asset in will all normal assets. Remove the delete option for all users from menu now.

3. Create a new section/folder called Recyclybin Section where fetch all assets have recycle bin property as true. and give only relevant access to this folder

Thanks

March 17, 2016

Hi @edubey.

Thanks a lot. 

Where in the /libs files should I add this check to be able to by default show only recycle-bin = false/null for Touch UI?

Can this be done by changes in jsp/js files only? or backend java changes also required?

Would really appreciate if you could guide.

edubey
edubeyAccepted solution
March 17, 2016

Its always recommended never change anything in /libs

This property will be added to individual asset which will be sent to recycle bin,

I guess, it will not required java changes, 

Take a look at this menu, you need to add one option here for sending to recycle bin, once user click that, remove asset from view and add a property to it

To get details knowledge,

See these documentation which talks about customization of touch ui console

https://docs.adobe.com/docs/en/aem/6-0/develop/extending/customizing-consoles-touch.html

https://docs.adobe.com/docs/en/aem/6-0/develop/extending/customizing-page-authoring-touch.html

MeenakshiP
August 16, 2016

Hi,

Can you please share steps how did you implement this approach of adding Recycle bin for assets?

Thanks.