I have a situation where i need to stop unpublishing of specific pages. I want to write some template or code which will stop unpublishing for such pages.
The need is very intresting .
I have a page text.xml in CMS , i publish it and it goes to broker as well as on file system as text.xml .
I renamed it to text1.xml .
- I created a new page text.xml and publish it again . This also will go to broker as a new entry and will go to file system as text.xml.
- If i publish/unpublish the old text1.xml , it removes the text.xml from file system.
- I need to stop old unpublish to remove it from file system so i want unpublish to fail for this particular page .