Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

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

    $can_be_root Link to this post

    Hello,

    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.

    Cheers,

    Gary

  • blueskies
    Avatar
    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
    Avatar
    Community Member
    901 Posts

    Re: $can_be_root Link to this post

    Same problem here. Subscribe

  • Willr
    Avatar
    Forum Moderator
    5464 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

    2287 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.