[url removed, login to view]
using the Online Store plugin as an example, I want two new optional parameters added to the [url removed, login to view] object.
in the "admin" section of the object, add these parameters:
"only-one-page-instance" (default false), and "do-not-delete" (default false).
The simplest to manage is the "do-not-delete". In this case, if an admin tries to delete a page of that type, or tries to change it to a different type, then the CMS should refuse to do it.
If you get that done quickly, then try the second, which will be a little trickier: if someone is creating a page, don't let them create more than one of a specific type. also, don 't let someone sneak around the limit by changing types of existing pages. For example, don't let someone create an online-store page, and then also change the home page into another online-store page.