Question 

How to publish or unpublish dam assets for a period of time in CQ ?

Resolution

As for the pages, using the on/off time properties in the way to go .

As for the current release, you will have to use an Asset Editor page to edit them.
The process is documented in this documentation page (1). Search for the "Title" component section.
Summary : To edit the on/off time properties, edit the title component, and uncheck the "Hide edit button". Then, users can edit the Title by clicking the Pencil icon, and enter On and Off Times to turn the asset on and off.

Starting the next release of CQ : 5.6, the edition of those properties will be performed from the damadmin UI.

The mechanism behind the definition of an "on" or and "off" period for assets, is to trigger corresponding Activation or Deactivation request towards the publishers, in order to physically add, or remove the Asset on the instances.
This way, publishers won't be able to render the deactivated asset via any component or Asset Search feature during an "off" period.

To achieve this, the "On-/Offtime reached" trigger has to enabled on your standard replication agents, see this doc page (2) .

Use case example :

An asset must not be accessible during Monday the next week (let's say 20XX/07/22), between 8am and 7pm . The Asset is currently published.
- Set the off time to 20XX/07/22 at 08:00 and the ontime to 20XX/07/22 at 19:00 .

Thanks to the trigger, a Deactivation request will be issued at 8am on this day, removing the asset from publishers.
An Activation request will be sent at 7pm the same day, to make the Asset available again.

Note : the same trigger must be enabled on your dispatcher flush agents to invalidate the cache when the on/off time period boundaries are reached.

Please raise a Daycare ticket if you have problems to use the feature or need additionnal informations.


(1) http://dev.day.com/docs/en/cq/current/dam/creating_and_configuringdamfinderandasseteditorpages.html#Creating the Asset Editor Page

(2) http://dev.day.com/docs/en/cq/current/deploying/configuring_cq.html#Replication Agents - Configuration Parameters

Applies to

CQ >= 5.4

Esta obra está autorizada con arreglo a la licencia de Reconocimiento-NoComercial-CompartirIgual 3.0 Unported de Creative Commons.  Los términos de Creative Commons no cubren las publicaciones en Twitter™ y Facebook.

Avisos legales   |   Política de privacidad en línea