Newsletter name appears at top LH of email - can it be removed?

mcjudd - June 29, 2009 - 12:35
Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi there

Great module and about to do my first mass subscription / emailing.

However, at the top of all newsletters sent the title of the list (ex. Examaple List) appears at the top LHS of the email. Is there anyway to remove and/or suppress this.

For me it just seems unneccessary.

THanks

#1

mcjudd - June 30, 2009 - 06:40
Title:List name appears at top LH of email - can it be removed?» Newsletter name appears at top LH of email - can it be removed?

Sorry I should have asked how can I remove the Newsletter name at the top LH side of the email?

Thanks

#2

jackinloadup - July 13, 2009 - 21:08

Try putting this in your template.php file in your theme folder. If you use your administrative theme for editing you might have to put it in there as discussed here #374222: Template files do not work when using admin theme

<?php
function THEME_NAME_HERE_simplenews_newsletter_subject($name, $title, $language) {
  return 
$title;
}
?>

#3

jackinloadup - July 13, 2009 - 21:24

This seems to be a recurring request.

See:
#303137: [Simple Newsletter] Remove precedeing brackets
#500782: Removing the [] from email subject

Would it be possible to allow this portion of the subject to be turned off in the admin panel?

Would the module maintainers be open for a patch?

#4

jackinloadup - July 13, 2009 - 21:37

Sorry i seem to have missed the correct topic on this issue. I thought mcjudd was talking about the subject.

The correct solution is to add a file in your theme: simplenews-newsletter-body.tpl.php
you may need to place it in your admin theme folder if you edit in your admin theme.

then place the following inside

<?php print $body; ?>

Usually this file contains this:

<h2><?php print $title; ?></h2>
<?php print $body; ?>

#5

Sutharsan - September 11, 2009 - 09:29
Status:active» closed

Thanks jackinloadup, you answer is the right one.

 
 

Drupal is a registered trademark of Dries Buytaert.