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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Overriding of template Files not working


Go to End


2 Posts   2038 Views

Avatar
senfman

Community Member, 1 Post

26 August 2009 at 9:11pm

Hi Guys,

The Overriding of template Files seems to be not working for me.

On my Silverstripe Installation I created an own template and was trying to override it by more specific code in the mysite/templates directory.

The strange thing was, that Silverstripe started to use the Page.ss from mysite/templates only after I deleted the Page.ss in the themes/themename/templates directory. This should actually be the other way around, shouldn't it? (For your background information: I use SilverStripe 2.3.3 on KUbuntu 9.04). Is there a way to (at least) debug this?

senfman

Avatar
baba-papa

Community Member, 279 Posts

4 September 2009 at 1:00am

After changing any template code or markup you must flush the templatecache be appending ?flush=all to your url.