Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Hiding Page types?

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

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

Page: 1
Go to End
Author Topic: 1383 Views
  • mapes911
    Avatar
    Community Member
    12 Posts

    Hiding Page types? Link to this post

    Hi all,

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

    Thanks!

  • Blackdog
    Avatar
    Community Member
    156 Posts

    Re: Hiding Page types? Link to this post

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

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

    1383 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.