This project is read-only.

Only One Instance of a Content Managed Page

Topics: Developer Forum, Project Management Forum, User Forum
Nov 3, 2008 at 9:21 PM
I have a Contact Us page. I only want to allow once instance of the page to exist. But I want there to be some content on the page that can be managed. Is this possible. I would greatly appreciate any guidance.

Thanks
Daniel
Nov 3, 2008 at 9:35 PM
Isn't it to overdo it to require only one instance of a contact page? This could be done by subscribing to N2.Context.Persister.ItemSaving and checking that no other published contact page exists. If you throw an exception in the event handler the message will appear in the interface.