Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » newsletter templates

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 5288 Views
  • Maarten
    Avatar
    Community Member
    4 Posts

    newsletter templates Link to this post

    Hi,

    I created a newsletter template in /mysite/templates/email/

    I created a new newsletter, selected this template, and put some content in the body,

    But the sent email does not contain the html from the template.

    What do I do wrong?

    thx,
    Maarten

  • Maarten
    Avatar
    Community Member
    4 Posts

    Re: newsletter templates Link to this post

    come on guys, this should be easy...

  • dio5
    Avatar
    Community Member
    501 Posts

    Re: newsletter templates Link to this post

    First: have you flushed your page?

    Secondly: I remember I had some issues too with that.

    Some things I noticed:

    - your Email directory should be with an uppercase 'E'.
    - Try adding it to your themes/yourtheme/templates/Email/ folder too.

    There is something weird going on with that (or something wrong with the docu), but it should work with my suggestions, at least it worked for me.

  • Maarten
    Avatar
    Community Member
    4 Posts

    Re: newsletter templates Link to this post

    you were right, it's the uppercase 'E' that does it.
    kinda stupid, but hey!

  • ulysses
    Avatar
    Community Member
    57 Posts

    Re: newsletter templates Link to this post

    Maarten - I am new to this. Can you please advise how to setup a newsletter template. I would like to use the same template as is being used for the site from the theme.

    Do I just copy the template structure from the themes across into the "mysite" folder. which files do I need if I was to use an existing them template?

    An example of how to setup the tempalte and implement it would be much appreciated.

    Thanks

  • dgw
    Avatar
    Community Member
    3 Posts

    Re: newsletter templates Link to this post

    Is there more info on this somewhere? Documentation on:
    * where the newsletter templates go
    * bare bones example of what is required in the template file.

    Sorry if I've missed something obvious,
    DW

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: newsletter templates Link to this post

    As has been mentioned here, the templates go in /mysite/templates/email

    Some info on how to set up in the doc - http://doc.silverstripe.com/doku.php?id=newslettersytemhelp#email_templates

    The basic info would be the first/last name and the message itself though it's really up to you how you extend this.

  • Nicolaas
    Avatar
    Forum Moderator
    213 Posts

    Re: newsletter templates Link to this post

    I could not get the template the work.... I had exactly the same setup locally, where the templates were recognised but on the server, the CMS did not find the templates. Very strange! Perhaps it was a case sensitive issue.

    I found that if I put the template into
    /themes/mytheme/templates/Email/ it does not work
    /mysite/templates/Email/ it does work

    Cheers

    Nicolaas

    5288 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.