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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Problem with How themes work in SS3 ?


Go to End


555 Views

Avatar
DesignerX.com.au

Community Member, 107 Posts

5 August 2012 at 8:34pm

Hi:
I have NewPage.php as a module & a default theme in the Module folder . I have Newpage/templates/NewPage.ss + Newpage/templates/Layout/NewPage.ss BUT if I copy NewPage.ss to the current theme folder then Newpage/templates/Layout/NewPage.ss does not get used & it fals back to the default page.ss !!

Any idea why ? it looks as if the files can be from ONLy one of the following locations : mysite OR MyModule/temapltes OR MyTheme so if things are missing from MyThem it is NOT trying to find it in MyModule/temapltes !!!

Is is how i should work in SS3 or is it a bug ?
Thanks