Jump to:

5541 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Overwrite a CMS template

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

Page: 1
Go to End
Author Topic: 1564 Views
  • GertThiel
    Avatar
    Community Member
    7 Posts

    Overwrite a CMS template Link to this post

    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

  • GertThiel
    Avatar
    Community Member
    7 Posts

    Re: Overwrite a CMS template Link to this post

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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Overwrite a CMS template Link to this post

    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.

  • GertThiel
    Avatar
    Community Member
    7 Posts

    Re: Overwrite a CMS template Link to this post

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

  • orion
    Avatar
    Community Member
    20 Posts

    Re: Overwrite a CMS template Link to this post

    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!

    1564 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.