I wanted to know that Is there anyway we can set the expiry date for AEM pages. I'm aware that we implement the expiry functionality with DAM assets in OSGi configuration (Adobe CQ DAM Expiry Notification).
Hi @Raja-kp ,
We don't have AEM page expire as an OOTB feature similar to asset. But same can be achieved using manage publication option. You can set timer to unpublish the page. Below screenshot are for the reference:
We can use two different approach here
Approach:1 Manage Publication as suggested here https://stackoverflow.com/questions/44789499/how-to-set-a-page-to-expire-in-aem-6-1.
Manage publication has Unpublish option with Now and Later option. No customization would be required.
Approach:2 If you would like to implement similar approach like Adobe CQ DAM Expiry Notification , then please refer the implementation class com.day.cq.dam.core.impl.ExpiryNotificationJobImpl (scheduler), Bundle com.day.cq.dam.cq-dam-core.
Here you need to define separate property for page expiration.
Make necessary change in terms of constant, replace dam:Asset with cq:Page, resource path, replace jcr:content/metadata/prism:expirationDate with jcr:content/pageexpirationDate. Development and testing effort would be required.
I agree with @anish-s here and we can use Manage Publication.
@Raja-kp you can create a workflow model which will trigger email to the specified group. It will be process step so no intervention would be needed. As soon as the page gets unpublished, the email would trigger.