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   1427 Views

Avatar
mapes911

Community Member, 12 Posts

11 December 2008 at 8:55pm

Hi all,

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

Thanks!

Avatar
Blackdog

Community Member, 156 Posts

11 December 2008 at 11:20pm

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

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