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.

Themes /

Discuss SilverStripe Themes.

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

Templates not being read for new class


Reply


2 Posts   548 Views

Avatar
Bimble

Community Member, 16 Posts

20 December 2013 at 2:49am

Sorry newbe question, but its my first day with this CMS...

I created Datastore.php with a class Datastore that extends Page with new fields types.

The fields are all working fine in the dev tool, however they are not being themed (im certain a theming problem since I put dummy text changes in and they arent being displayed either)

The tutorial says to put a Datastore.ss theme in the ..'themes/simple/templates/Layout/' folder

However, it is not being read when I put there.

Where should my Datastore.ss template be put to overerite the Page.ss template

Thanks!

Avatar
kinglozzer

Community Member, 175 Posts

20 December 2013 at 4:34am

Hi Bimble,

That sounds like the correct location, did you perform a flush after adding the template? http://mysite.com?flush=1

Loz