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.

General Questions /

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

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

Problem with How themes work in SS3 ?


Reply


302 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