Hello,
after many tests I still do not understand:
Theme newsletter body
* Simplenews-newsletter-body.tpl.php (for all newsletters)
* Simplenews-body-newsletter - [tid]. Tpl.php (for newsletter series tid;
where [tid] is replaced by the term id of the newsletter taxonomy term.
if I followed the tid is the id of the term taxonomy vocabulary of my newsletter.
When I list in my vocabulary taxonomy_manager which corresponds to my newsletter I
Term:
www.test.com bulletin (507)
admin/content/taxonomy_manager/termdata/7/507/true.edit-term-data-description
so if I copy the files in the directory of my theme:
simplenews-newsletter-body.tpl.php
simplenews-newsletter-footer.tpl.php
and that I rename in:
simplenews-newsletter-body--507.tpl.php
simplenews-newsletter-footer--507.tpl.php
this should be good off it does not work.
An idea because it is more than two weeks I have trouble with that.
Thank you
Comments
The .tpl file should be in the admin theme
Hey there,
Make sure that the .tpl files...
simplenews-newsletter-body.tpl.php
simplenews-newsletter-footer.tpl.php
...are placed in your admin theme, not your main theme. That's something that caught me too.
-Tim
Clear cache
Did you clear the theme registry cache?
What do you mean "admin"
What do you mean "admin" theme folder? What folder is that?
.
I am wondering which folder that should be as well.
My testing of which folder to use showed to leave the files under ..../sites/all/modules/simplenews/theme/.
I tried putting them into my danland theme folder ..../sites/all/themes/danland but that didn't work for some reason.
And I do not have a specific admin theme, so no idea where else to put the files.
Of course, leaving the files in the module folder means they can get overwritten when updating the module - at least the general files without the tid - so you need to back them up.
May be we are missing some little trick.
Still struggling to get the newsletter issues to be sent out in html......
.
to get the html going -
http://www.example.com/admin/messaging/settings/method
choose email option html - is in sending (Newsletter tab) in folded option below - (in simplenews 2.x).
............
in V7 to make the newsletters
in V7 to make the newsletters go out in HTML you modify "Newsletter format " here
admin/config/simplenews/scs
Diana Castillo
where to put template files for simplenews
you have to put them in a new folder you make under your sites/all/themes with the name of your administration theme see here http://drupal.org/node/374222#comment-5224418
Diana Castillo
NOT IN THE ADMIN!!!
No don't put the tpl in an admin theme folder!!!
If so, your tests might work just fine but real emails (sent via CRON) will have NO THEME!
What you need is configure what theme to use in the Mailsystem module config page (admin/config/system/mailsystem).
Regards,
Florent
Unless you have to...
Well well...
after a bit of struggle, I must say that in some case (maybe using Display Suite AND field collection tpls), it seems that using sites/all/themes/seven (or whatever admin theme you use) to store your tpl files might be mandatory. In my case anyway, it looks like so... :-(