How to add/remove rules applied to a page when it gets published | Community
Skip to main content
Level 2
August 26, 2024
Solved

How to add/remove rules applied to a page when it gets published

  • August 26, 2024
  • 2 replies
  • 643 views

Hi 

I am trying to remove a rule which is applied when I publish a page from AEM author to publisher. Basically what that rule does is update any expired/no longer exist URLs in that page to company website home page. How can I do that?

Thank you

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

Hi @hanl 
You may need to write an replication/sling distribution based listener to listen the publish/unpublish event

https://helpx.adobe.com/tr/experience-manager/kb/ReplicationListener.html 

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 26, 2024

Hi @hanl 
You may need to write an replication/sling distribution based listener to listen the publish/unpublish event

https://helpx.adobe.com/tr/experience-manager/kb/ReplicationListener.html 

Arun Patidar
Saravanan_Dharmaraj
Community Advisor
Community Advisor
August 26, 2024

@hanl  What do you mean by rule? Is that a workflow process runs when you publish and set the broken link with home page url for those links? We need to understand how the rule is applied to activation of page before you think about removing it. 

If you want to attach a feature related to activation event, you can add it through event listener like Arun mentioned.