Option to only append header and footer to outgoing emails but not to node

tcblack - May 5, 2007 - 17:15
Project:Simplenews Template
Version:5.x-1.3
Component:User interface
Category:feature request
Priority:normal
Assigned:TBarregren
Status:closed
Description

Would it be possible to include and option which would only append the header and footer to outgoing emails but not to the node itself?
I would like to include site graphics and an extended "signature" in the email newsletter but don't want them duplicated in the node.

Thank you for this great module.

#1

TBarregren - May 5, 2007 - 21:25

Good idea. I put it on my TODO list.

#2

dtabach - October 8, 2007 - 16:37

+1

As you can add any text and configure any styles to newsletters by other means when they are viewed on the site, headers, footers and also styles provided by this module should only be applied to email messages.

#3

aliix - November 28, 2008 - 08:34

While a fine option I'm not sure I totally agree with this. It's nice to have the newsletter look the way it did in someone's email. However it doesn't!

If you change the template to a new design, the new design will be applied to ALL OLD NEWSLETTERS. That makes it really hard to change the design.

I encountered this when adding Template to an old installation. Now all my existing nodes have double templates, since the old newsletters had the header and footer copy/pasted into them.

Is there any way around this besides creating a new newsletter every time you change style?

#4

aliix - November 28, 2008 - 08:36

Actually, personally I'd like to have the option of the template simply being a starting point when someone creates the newsletter.

In my case, non-technical people are creating the newsletter so the template is just supposed to be a starting point. I'd like the template to have sections (upcoming events, photos, etc) that the user can edit or delete as they wish. Right now they would have to go to an old newsletter and copy/paste the code. I just want to "create new newsletter from template".

#5

tcblack - December 1, 2008 - 16:09

Actually having it appear the same is the point.
When the newsletter is loaded on the website there is a header with graphics, maybe a sidebar and a footer.
When the same newsletter is loaded in email it only contains the text of the newsletter. I'm looking to have the newsletter look like the web page.

#6

TBarregren - January 31, 2009 - 20:06
Version:5.x-1.1» 5.x-1.3
Status:active» postponed

I've decided to postpone this feature until a future 5.x-2.x branch. The reason is that this can't be done in without breaking the "contract" of how the templates works. That is, introducing this feature would require changes to the template handling which will not be backward compatible.

#7

TBarregren - February 1, 2009 - 20:49
Assigned to:Anonymous» TBarregren
Status:postponed» fixed

I changed my mind. :-) See commit #168496. Will be included in the upcoming 5.x-1.4 release.

#8

System Message - February 15, 2009 - 20:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.