Custom rollout action

Deepikaa_Nagesh

23-04-2020

Hi ,

 

is there a possibility to change image references on page roll out?

 

Use case : Same image has different expiry dates for different countries.

We are planning to duplicate the image for countries and add respective expiry dates since only one expiry date is possible for a image.

The challenge here is , image reference should change automatically on roll out of page from source to live copy like how it does for page links.

 

any alternative ideas are welcome.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Jörg_Hoh

Employee

24-04-2020

If you have different expiration dates per country/tenant, I would extend the asset metadata by a structure to store the per-country/tenant expiration on the asset itself, instead of duplicating it.

Then you can adjust your rendering in a way, that the asset is not being referenced from the page (that means: no img-tag), if the expiration date has passed for the context it is displayed. This also works for Dynamic Media.

Answers (2)

Answers (2)

PuzanovsP

MVP

23-04-2020

Hi Deepikaa,

 

Is your requirement to copy all images for all locales?

Why would you want to duplicate your image to different locales, having big DAM increases costs directly or indirectly?

 

Simply add expiries for different regions as meta-data for one asset, it's easier to maintain it that way.

Then once you hit your image servlet, check for expiry time for this locale and if expiry has been hit, show 404 to the user.

 

Regards,

Peter

Arun_Patidar

MVP

23-04-2020

Check article to see how to create custom rollout action https://balawcm.wordpress.com/2014/01/29/custom-cq-live-action/