The overriding of simple news templates works perfectly with a normal theme.
Procedure I followed:
I tried to install multiple templates for multiple newsletters on a zen subtheme.
I copied the simplenews-newsletter-body.tpl.php to my subtheme folder
I renamed the file to simplenews-newsletter-body--158.tpl.php (158 is the tid of the newsletter term)
I flushed all caches.
It didnt work. The file couldnt be reached.
I tried to do the same process on an other install without the zen theme, with a copy of garland and everything is working fine.
So the problem must be the zen subtheme.
All other things in my zen theme are working perfect. Like node tpl's, page tpls, overrides of tpl files of other modules, overrides in the template.php...
I m puzzled why it doesnt work. Please help me. Thanks!
Comments
Comment #1
johnalbinTemplate suggestions don't work without the base tpl in your sub-theme as well. That's a core bug/issue.
In other words, in order for Drupal to recognize the simplenews-newsletter-body--158.tpl.php, you also need to have a simplenews-newsletter-body.tpl.php file in your subtheme.
And, BTW, Zen is a normal theme. Its only when you peel back its template.php that you see the giant S emblazoned on its chest. ;-)