Hi Willr,
Thanks for responding. What I am actually trying to understand is if ForumMemberProfile is a child of another page and not if it has children. I see these two methods in ForumMemberProfile class and could use a little clarification on them. ForumMemberProfile has a Forum parent? Why are we tricking sitetree?
/**
* This will trick SilverStripe into placing this page within the site
* tree
*/
function getParent() {
$siblingForum = Forum_Controller::getLastForumAccessed();
return $siblingForum->Parent;
}
/**
* This will trick SilverStripe into placing this page within the site
* tree
*/
function getParentID() {
$siblingForum = Forum_Controller::getLastForumAccessed();
return $siblingForum->ParentID;
}
Also, where in the code is it defined that pages ForumMemberProfile/show/ resolve? How is this working? Where is "show" being handled? Where does it determine to use ForumMemberProfile_show.ss template?
Thanks again