Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Community Advisor

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