Page expiry functionality with AEM pages | Community
Skip to main content
Raja-Karuppsamy
Community Advisor
Community Advisor
February 2, 2022

Page expiry functionality with AEM pages

  • February 2, 2022
  • 3 replies
  • 2509 views

Hi Team,

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).

 

Please suggest.

 

Regards,

Raja

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Vijayalakshmi_S
Level 10
February 2, 2022
Anish-Sinha
Adobe Employee
Adobe Employee
February 2, 2022

Hi @raja-karuppsamy ,
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:

DEBAL_DAS
New Member
February 2, 2022

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-sinha here and we can use Manage Publication.

Debal Das, Senior AEM Consultant
Raja-Karuppsamy
Community Advisor
Community Advisor
February 3, 2022

@debal_das @anish-sinha @vijayalakshmi_s Thanks for your response - will validate the steps and update here.

Raja-Karuppsamy
Community Advisor
Community Advisor
February 3, 2022

@debal_das @anish-sinha @vijayalakshmi_s Is there anyway we can trigger a notification to a group once the page got de-activated or un-published ?