12 October 2010 at 11:53pm
What I am trying to do is somewhat similar to the news section in the tutorial, only without the Holder, sort of.
Basically I have an about-us page, and I want the content from that to also appear on the homepage (which also has other things on it). I'm a beginner with SilverStripe so I'm at a bit of a loss as to how to do this, so any suggestions would be most appreciated.
13 October 2010 at 12:17am
(Last edited: 13 October 2010 12:37am),
in the hompepage controller...
$doAboutUsPage = DataObject::get_one('Page',"URLSegment = '<url segment of aboutus page>'");
if ($doAboutUsPage) return $doAboutUsPage->Content;
else return 'No About Us Page';