Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » $can_be_root

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: 2325 Views
  • gakenny
    Community Member
    153 Posts

    $can_be_root Link to this post


    I am trying to enforce certain page types that can only occur as children of others. For example, I have DateHolder and DatePage. Under DatePage, I have added 'static $can_be_root = false;' under 'static $has_one = array();'. However, I am still able to create a DatePage under Site Content in the hierarchy.



  • blueskies
    Community Member
    42 Posts

    Re: $can_be_root Link to this post

    I'm having the same problem, and still ahven't found an answer... just subscribing to your post in case someone knows how to solve it

  • banal
    Community Member
    901 Posts

    Re: $can_be_root Link to this post

    Same problem here. Subscribe

  • Willr
    Forum Moderator
    5497 Posts

    Re: $can_be_root Link to this post

    Im pretty sure the can be root is a work in progress / feature that never really got completed! I will check it out

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.