Hi there
Silverstripe newbie here, am working my way through Tutorial 1, and although I've managed to create new page types, I have run into a problem with the subtemplates.
Am trying to customise my own theme, so am working out of "mydomain/silverstripe/bluetheme/templates" folder. Have created a "AboutUsPage.php" file with the extend Page and extend Page Controller bit, uploaded into the "MySite/Code" folder. Created a "AboutUsPage.ss" in the "mydomain/silverstripe/bluetheme/templates/Layout" folder and that worked fine.
However, when I tried to introduce a new template variable "Banner" into the main "Page.ss" under "mydomain/silverstripe/bluetheme/templates" folder, and created the Banner folder with the appropriate "Page.ss" and "AboutUsPage.ss" in it, the information does not show up.
I've flushed the database, cms and amended pages, but still no joy. Changed the name of the template variable to "Star", still not working.
Just wondering, do I need to define my new template variable anywhere in the Silverstripe cms, or does it do it automatically?
Also, just wanted to check that this should work from the "theme" directory and not from the "Mysite" directory, right?
I'm sure I've just missed something really basic. Have double checked all my upper and lowercase spellings this time. Any help would be most appreciated.
J.
Will finish this tutorial even if it kills me.