5102 Posts in 1520 Topics by 1116 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1401 Views |
-
Overwrite a CMS template

25 January 2009 at 3:04am Last edited: 25 January 2009 3:04am
Howdy!
To integrate Google Conversion Tracking I would like to overwrite ReceivedFormSubmission.ss 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.
Gert
-
Re: Overwrite a CMS template

27 January 2009 at 4:03am
I couldn't help myself yet
Will I ever get an answer? -
Re: Overwrite a CMS template

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.
-
Re: Overwrite a CMS template

27 January 2009 at 9:49pm
I consider to modify ReceivedFormSubmission.ss to include the Google Conversion Tracking script, so only successful (contact) form submissions gets tracked.
-
Re: Overwrite a CMS template

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!
| 1401 Views | ||
|
Page:
1
|
Go to Top |


