I have a page that then has dynamic sub pages: http://hbaf.webranger.co.nz/shows/event/323309
My problem is when I go to the sub page I don't get the Site-wide variables I set up in my Page.php controller.
This is what is set up in my Page.php controller:
//GET HOME PAGE SITEWIDE VARIABLES FOR DISPLAY ACROSS WEBSITE
public function HomePageFields() {
$HomePage_return = HomePage::get()->byId(1);
return $HomePage_return;
}
In my templates I use: $HomePageFields.Sponsors_1
But when I use return $output[0]->renderWith('EventPage');
My EventPage.ss templates doesn't display any $HomePageFields data.
I hope this is clear enough.
Cheers
Robin