Expand my Community achievements bar.

SOLVED

AEM Assets Customization - Delete action customization

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

4 Replies

Avatar

Level 10

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

Avatar

Level 2

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.

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

Hi,

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

Thanks.