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.

Installing SilverStripe /

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

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

Overriding of template Files not working


Reply


2 Posts   1564 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.