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.

Themes /

Discuss SilverStripe Themes.

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

Templates not being read for new class


Go to End


2 Posts   1680 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, 187 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