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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Overwrite a CMS template

Go to End

5 Posts   1945 Views


Community Member, 7 Posts

25 January 2009 at 3:04am

Edited: 25/01/2009 3:04am


To integrate Google Conversion Tracking I would like to overwrite which is located im cms/templates/. If I place a file with the same name in mysite/templates/ or themes/mytheme/templates/Layouts it doesn't get used by SilverStripe.

Will I have to overwrite a original SilverStripe file which might be updated upstream later?

Thanks in advance for any help.



Community Member, 7 Posts

27 January 2009 at 4:03am

I couldn't help myself yet :-(
Will I ever get an answer?


Forum Moderator, 4102 Posts

27 January 2009 at 4:22am

Well, there are a couple things you can do. First, I wouldn't be using the CMS form creator in the first place. It's been sunset in the 2.3 version of SS in favor of custom forms.

But if you are, can you explain why you need to mod the template? If your javascript hooks are unobtrusive, you shouldn't need to change any markup.


Community Member, 7 Posts

27 January 2009 at 9:49pm

I consider to modify to include the Google Conversion Tracking script, so only successful (contact) form submissions gets tracked.


Community Member, 20 Posts

18 February 2010 at 5:12pm

uncle cheese,

I have a project where I need to upload text content to some pages of an unfinished site, while developing the rest of it. My concern is that when i update the site, will I overwrite all my content. Is there a way I can prevent this?

Thank you in advance!