Expand my Community achievements bar.

SOLVED

Restrict number of assets activation

Avatar

Level 2

Hi,

I need to restrict the number of assets activation in DAM i.e. if I activate folder with 100 assets in it then it should either activate a fixed number of assets like 30 at a time or it should display a pop-up message that this folder contains that number of assets.

Is there any way to achieve it?

I'm trying to figure out the file which triggers on "Activate" button click but not finding anything in particular.

Regards,

Sumanth

1 Accepted Solution

Avatar

Correct answer by
Level 10

that's makes it more clear. Thanks

as long a pop up is concerned there is no ootb way directly, though you can attach a click action on activate button which would be calling your custom servlet. Your servlet will be returning the count.

One more thing, instead of having custom servlet, you can .1.json to the path of parent asset to get count in client side directly.

You can leverage Granite framework for it- https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/granite-ui...

View solution in original post

3 Replies

Avatar

Level 10

Can you explain your use case in more detail. Like what do you mean by "fixed number of assets like 30 at a time"?

Avatar

Level 2

As per the requirement, as an Enhanced author, I should be able either get a warning popup when trying to activate hundreds of assets in DAM (images) or a whole folder so that it does not affect site performance.

So, basically what I'm looking here to implement it, if there're more than 100 assets in a folder and if I activate that particular folder. it should display a pop-up message stating these number of assets are there in a folder so the author will go into the folder and activate assets in chucks.

Avatar

Correct answer by
Level 10

that's makes it more clear. Thanks

as long a pop up is concerned there is no ootb way directly, though you can attach a click action on activate button which would be calling your custom servlet. Your servlet will be returning the count.

One more thing, instead of having custom servlet, you can .1.json to the path of parent asset to get count in client side directly.

You can leverage Granite framework for it- https://helpx.adobe.com/experience-manager/6-2/sites/developing/using/reference-materials/granite-ui...