Skip to main content
Level 2
Aug 26, 2024 3:18 PM UTC
Solved

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

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.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Aug 26, 2024 3:33 PM UTC

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

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Aug 26, 2024 3:33 PM UTC

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 

Translate
Arun Patidar
Saravanan_Dharmaraj
Community Advisor
Community Advisor
Aug 26, 2024 5:29 PM UTC

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

Translate