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.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Hiding Page types?


Reply

2 Posts   1396 Views

Avatar
mapes911

11 December 2008 at 8:55pm Community Member, 12 Posts

Hi all,

Is there a way to hide any of the built in page types from the "create" drop down?

Thanks!

Avatar
Blackdog

11 December 2008 at 11:20pm Community Member, 156 Posts

Use this in your Page type model and replace PageType with your page type name.

   function canCreate() {
      return !DataObject::get_one("PageType");
   }