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

$can_be_root


Reply

4 Posts   2344 Views

Avatar
gakenny

6 October 2007 at 8:11pm Community Member, 153 Posts

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

Avatar
blueskies

16 April 2008 at 2:54am Community Member, 42 Posts

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 :-)

Avatar
banal

3 August 2008 at 10:10pm Community Member, 901 Posts

Same problem here. Subscribe

Avatar
Willr

3 August 2008 at 11:22pm Forum Moderator, 5511 Posts

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