Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

New Page type for single use


Go to End


1147 Views

Avatar
PotatoReaper

Community Member, 2 Posts

30 March 2016 at 11:43pm

Hello.

Is there an Option to create a new page-type that is for single use only? I tried to create a hidden class and when I try to access it I first look whether it already exists. If not I just create it that instance. That works but it is complicated, clumpsy and feels like a bad hack. Also for some reason it is still in the selection at the backend where you can create new pages.
So anyone out there with a better Solution?

Thank you for reading