Limit block and page types to be created only once.
In the last couple of solutions I have been involved in we have had the need to create additional tools for specific business needs.
We have often chosen too create the tools as page types to make the tools blend in with the rest of the site and be able to set access rights.
One drawback is that the tool types clutter down the create new type list. Sure it’s easy to fix via disabling “available in edit mode” and what I did might be a solution to a very small problem but it seemed like a good idea at the time
.
I created an interface and an initializing module. Just implement the interface returning true and the module will set the “available in edit mode” to false as soon as an item of specified content is created. To be able to create a new one the content needs to be deleted and the waste basket emptied.
You can get the code over at GitHub.
Comments