Startseite
  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche
Startseite › Forum › Drupalcenter.de › Allgemeines zu Drupal ›

Simplenews rendering theme

Eingetragen von 1000 (764)
am 05.09.2012 - 22:35 Uhr in
  • Allgemeines zu Drupal
  • Drupal 7.x oder neuer

IIch verwende das Modul Simplenews um Newsletter zu versenden. Nun habe ich mehrere Templates testweise versendet und festgestellt, dass diese nicht korrekt versandt werden. Der Versandt des gleichen Templates mitteln anderem Newsletter System funktioniert und die Templates werden nach dem Versand korrekt beim Empfänger angezeigt. Nun habe ich gesehen, dass man verschiedene Themes als rendering Theme einstellen kann. Bisher habe ich es aber nicht geschafft den Newsletter korrekt zu versenden. Weiss jemand was da schief läuft?

‹ HTML Mail ohne header und footer Wie mit Trigger Module ins Log schreiben? ›
  • Anmelden oder Registrieren um Kommentare zu schreiben

Wie sind denn deine

Eingetragen von SteffenR@drupal.org (2262)
am 06.09.2012 - 07:13 Uhr

Wie sind denn deine derzeitigen Einstellungen ?
Wie du schreibst, funktioniert das Ganze, wenn du ein anders Newsletter-System verwendest - welches hast du dort eingestellt ?

Die Einstellungen für HTML-Mails kannst du in den Newsletter-Categories vornehmen - admin/config/services/simplenews

Global lassen sich die Einstellung auf der Seite admin/config/services/simplenews/settings ändern - für den Versand von HTML-Mails solltest du zusätzlich noch das MIME Mail oder das HTML Mail Modul instalieren.
http://drupal.org/project/mimemail
http://drupal.org/project/htmlmail

SteffenR

  • Anmelden oder Registrieren um Kommentare zu schreiben

Ich habe nun das HTML Mail

Eingetragen von 1000 (764)
am 06.09.2012 - 15:04 Uhr

Ich habe nun das HTML Mail Modul anstelle des Mime Mail Moduls verwendet und es funktioniert. Die HTML E-Mail wird korrekt versandt und beim Empfänger korrekt angezeigt.

Leider wird nun das E-Mail Template nur beim Empfänger korrekt angezeigt. Klickt der Empfänger auf "View it in a browser", so wird das E-Mail Template auf der Webseite angezeigt. Leider wird dort das Themeweite CSS verwendet, so dass das Template nicht korrekt dargestellt wird.

Wie schaffe ich es, dass die inline CSS Vorgaben im Template nicht durch die globalen CSS Anweisungen des Themes überschrieben werden?

  • Anmelden oder Registrieren um Kommentare zu schreiben

Wenn ich mich recht erinnere,

Eingetragen von torfnase (1525)
am 06.09.2012 - 15:17 Uhr

Wenn ich mich recht erinnere, hat Simplenews doch einen eigenen Inhaltstyp und deshalb kannst du ja bei der Ausgabe der node eine eigene: node--mein_newsletter.tpl.php verwenden.
Dann sollte es kein Problem sein, die globalen CSS-Anweisungen zu überschreiben.
Du kannst da die Verknüpfung zur gewünschten CSS-Datei einfach auch in den node--mein_newsletter.tpl.php schreiben.
Das sollte funktionieren.

Gruß
Berthold

  • Anmelden oder Registrieren um Kommentare zu schreiben

Ok, das hört sich

Eingetragen von 1000 (764)
am 06.09.2012 - 16:17 Uhr

Ok, das hört sich einleuchtend an. Ich denke so könnte es funktionieren. Nur wie setze ich es um?

Normalerweise speichere ich doch einfach das E-Mail Template in einer Node

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Mail4Nature</title>


<style type="text/css">

body{
margin:0px;
padding:0px;
background:#f1f1f1;
text-align:center;
width:100%;
}

img {
border:0px;
    text-align: right;
outline:none;
text-decoration:none;
display:block;

}

a,a:hover
{
color:#09713e;
text-decoration:none;
}


.cont-bg
{
background-color: #f1f1f1;
}



</style>

</head>

<body>

<!--Table Start-->

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="cont-bg" bgcolor="#f1f1f1" style="background:#f1f1f1 url(http://www.mail4nature.org/themes/business/images/bg.gif); padding:20px 0px 0px 0px;">
  <tbody><tr>
    <td align="center" valign="top">
   
    <!--Main Part Start-->
    <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td align="left" valign="top">
   
   
    <!--Header Part Start-->
   
    <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td colspan="2" align="right" valign="top" mc:edit="view" style="font:Normal 12px Arial, Helvetica, sans-serif; color:#000000; padding-bottom:15px;">Can't view this email?<a href="#" target="_blank"> View it in your browser.</a></td>
  </tr>
  <tr>
 
  <!--Logo Start-->
    <td width="237" align="left" valign="top" bgcolor="#FFFFFF" style="background:#FFF;"><img mc:edit="logo" src="http://www.mail4nature.org/themes/business/images/logom4n.png" style="display:block; padding:5px;" width="128" height="70" alt=""></td>
    <!--Logo End-->
   
   <!--Menu Part Start-->
    <td width="363" height="70" align="left" valign="middle" bgcolor="#FFFFFF" style="background:#FFF;"><table width="340" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td align="right" valign="top" mc:edit="Date" style="font:Bold 18px Arial, Helvetica, sans-serif; color:#09713e; text-transform:uppercase; padding-bottom:8px;">Newsletter : SEP 2012</td>
      </tr>
    </tbody></table></td>
    <!--Menu Part End-->
   
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top">
   
    <!--Banner Start-->
    <table width="600" border="0" cellspacing="0" cellpadding="0">
  <tbody><tr>
    <td align="left" valign="top"><img mc:edit="Banner-image" src="http://www.mail4nature.org/themes/business/images/m4nheader1.jpg" width="600" height="270" alt="" style="display:block;"></td>
  </tr>
  <tr>
    <td align="left" valign="top" bgcolor="#09713e" style="padding:25px 0px 18px 20px; background:#09713e;"><table width="561" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td align="left" valign="top" mc:edit="Banner-title" style="font:Normal 24px Arial, Helvetica, sans-serif; color:#FFF; padding-bottom:8px;">Main Article Title</td>
      </tr>
      <tr>
        <td align="left" valign="top" mc:edit="Banner-text" style="font:Normal 12px Arial, Helvetica, sans-serif; color:#FFF; line-height:18px; padding:0px 0px 12px 4px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been theindustry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries ...</td>
      </tr>
      <tr>
        <td align="left" valign="top"><a href="#"><img mc:edit="Banner-read-more" src="http://www.mail4nature.org/themes/business/images/read-more.png" width="128" height="31" alt=""></a></td>
      </tr>
    </tbody></table></td>
  </tr>
  </tbody></table>

  <!--Banner End-->

   
    </td>
  </tr>
</tbody></table>

<!--Header Part End-->
   
   
    </td>
  </tr>
  <tr>
 
  <!--Body Part Start-->
    <td align="left" valign="top" style="padding:12px 0px 12px 0px;"><table width="600" border="0" cellspacing="0" cellpadding="0">
      <tbody><tr>
        <td align="left" valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td align="left" valign="top">
             
              <!--Two column Part Start-->
              <table width="600" border="0" cellspacing="0" cellpadding="0">
                <tbody><tr>
                  <td align="left" valign="top" style="padding-bottom:12px;">
                   
                    <!--Two column 1 Start-->
                    <table width="600" border="0" cellspacing="0" cellpadding="0">
                      <tbody><tr>
                        <td width="300" align="left" valign="top"><img mc:edit="two-coulmn-image1" src="http://www.mail4nature.org/themes/business/images/image1.jpg" width="300" height="170" alt=""></td>
                        <td width="300" align="right" valign="top"><table width="300" border="0" align="right" cellpadding="0" cellspacing="0">
                          <tbody><tr>
                            <td height="170" align="left" valign="middle" bgcolor="#0091de" style="padding:0px 0px 0px 20px; background:#0091de;">
                             
                              <table width="280" border="0" cellspacing="0" cellpadding="0">
                                <tbody><tr>
                                  <td align="left" valign="top" mc:edit="two-coulmn-title" style="font:Normal 24px Arial, Helvetica, sans-serif; color:#FFF; padding-bottom:2px;">Heading 1 </td>
                                  </tr>
                                <tr>
                                  <td align="left" valign="top" mc:edit="two-coulmn-text" style="font:Normal 12px Arial, Helvetica, sans-serif; color:#FFF; line-height:18px; padding:0px 0px 12px 4px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard Lorem Ipsum has been the industry's standard dummy text ever since the</td>
                                  </tr>
                                <tr>
                                  <td align="left" valign="top"><a href="#"><img mc:edit="read-more" src="http://www.mail4nature.org/themes/business/images/read-more.png" width="128" height="31" alt=""></a></td>
                                  </tr>
                                </tbody></table>
                             
                              </td>
                            </tr>
                          </tbody></table></td>
                        </tr>
  </tbody></table>
                   
                   
                   
                    <!--Two column 1 End-->
                   
                   
                    </td>
                </tr>
                <tr>
                  <td align="left" valign="top" style="padding-bottom:12px;"><table width="600" border="0" cellspacing="0" cellpadding="0">
                    <tbody><tr>
                      <td width="300" align="left" valign="top">
                      <table width="300" border="0" align="left" cellpadding="0" cellspacing="0">
                          <tbody><tr>
                            <td height="170" align="left" valign="middle" bgcolor="#0091de" style="padding:0px 0px 0px 20px; background:#0091de;">
                             
                              <table width="280" border="0" cellspacing="0" cellpadding="0">
                                <tbody><tr>
                                  <td align="left" valign="top" mc:edit="two-coulmn-title2" style="font:Normal 24px Arial, Helvetica, sans-serif; color:#FFF; padding-bottom:2px;">Heading 2</td>
                                  </tr>
                                <tr>
                                  <td align="left" valign="top" mc:edit="two-coulmn-text2" style="font:Normal 12px Arial, Helvetica, sans-serif; color:#FFF; line-height:18px; padding:0px 0px 12px 4px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard Lorem Ipsum has been the industry's standard dummy text ever since the</td>
                                  </tr>
                                <tr>
                                  <td align="left" valign="top"><a href="#"><img mc:edit="read-more2" src="http://www.mail4nature.org/themes/business/images/read-more.png" width="128" height="31" alt=""></a></td>
                                  </tr>
                                </tbody></table>
                             
                              </td>
                            </tr>
                          </tbody></table>
                      </td>
                      <td width="300" align="left" valign="top"><img mc:edit="two-coulmn-image2" src="http://www.mail4nature.org/themes/business/images/image2.jpg" width="300" height="170" alt=""></td>
                    </tr>
                  </tbody></table></td>
                </tr>
               
<tr>
        <td align="left" valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td align="left" valign="top">
             
              <!--Two column Part Start-->
              <table width="600" border="0" cellspacing="0" cellpadding="0">
                <tbody><tr>
                  <td align="left" valign="top" style="padding-bottom:12px;">
                   
                    <!--Two column 1 Start-->
                    <table width="600" border="0" cellspacing="0" cellpadding="0">
                      <tbody><tr>
                        <td width="300" align="left" valign="top"><img mc:edit="two-coulmn-image3" src="http://www.mail4nature.org/themes/business/images/image3.jpg" width="300" height="170" alt=""></td>
                        <td width="300" align="right" valign="top"><table width="300" border="0" align="right" cellpadding="0" cellspacing="0">
                          <tbody><tr>
                            <td height="170" align="left" valign="middle" bgcolor="#0091de" style="padding:0px 0px 0px 20px; background:#0091de;">
                             
                              <table width="280" border="0" cellspacing="0" cellpadding="0">
                                <tbody><tr>
                                  <td align="left" valign="top" mc:edit="two-coulmn-title" style="font:Normal 24px Arial, Helvetica, sans-serif; color:#FFF; padding-bottom:2px;">Heading 3 </td>
                                  </tr>
                                <tr>
                                  <td align="left" valign="top" mc:edit="two-coulmn-text" style="font:Normal 12px Arial, Helvetica, sans-serif; color:#FFF; line-height:18px; padding:0px 0px 12px 4px;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard Lorem Ipsum has been the industry's standard dummy text ever since the</td>
                                  </tr>
                                <tr>
                                  <td align="left" valign="top"><a href="#"><img mc:edit="read-more" src="http://www.mail4nature.org/themes/business/images/read-more.png" width="128" height="31" alt=""></a></td>
                                  </tr>
                                </tbody></table>
                             
                              </td>
                            </tr>
                          </tbody></table></td>
                        </tr>
  </tbody></table>
                   
                   
                   
                    <!--Two column 1 End-->
                   
                   
                    </td>
                </tr>
                </tbody></table>
              <!--Two column Part End-->
             
              </td>
          </tr>
          </tbody></table>
         
         
         
         
          </td>
      </tr>
      </tbody></table></td>
  <!--Body Part End-->
   
   
  </tr>
  <tr>
 
  <!--Footer Part Start-->
    <td align="left" valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
  <tbody><tr>
    <td align="center" valign="top" bgcolor="#09713e" style="background:#09713e; padding:28px 0px 27px 0px;"><table width="544" border="0" align="center" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" valign="top" mc:edit="un-sp-text" style="font:Normal 12px Arial, Helvetica, sans-serif; color:#333; line-height:18px;">You have received this email because you have subscribed to  Mail4Nature.<br />  
If you no longer wish to receive emails please <a href="#" style="color:#FFFFFF;">unsubscribe</a></td>
      </tr>
      <tr>
        <td align="center" valign="top" mc:edit="c-right-text" style="font:Bold 12px Arial, Helvetica, sans-serif; color:#0091de; line-height:18px;">Copyright © 2012 Mail4Nature.org</td>
      </tr>
    </tbody></table></td>
  </tr>

</tbody></table>
</td>
  <!--Footer Part End-->
   
   
  </tr>
</tbody></table>

<!--Main Part End-->

   
    </td>
  </tr>
</tbody></table>

<!--Table Start-->





</body></html> Copyright 2012 mail4nature.org

Wie soll ich da nun vorgehen? Also eine Node.tpl.php erstellen aber mit welchem Inhalt? OK, also simplenews-newsletter-body.tpl.php kopieren und anpassen. Aber wie? Der Inhalt ist lediglich

<h2><?php print $title; ?></h2>
<?php print render($build); ?>

  • Anmelden oder Registrieren um Kommentare zu schreiben

Es würde mir schon reichen,

Eingetragen von 1000 (764)
am 06.09.2012 - 17:23 Uhr

Es würde mir schon reichen, wenn ich zunächst die generierten Links entferne, so dass der User nicht die Möglichkeit hat den Newsletter auf der Webseite anzuschauen. Das andere ist alles viel zu langwierig. Da braucht man min. 1 Woche ++ für.

  • Anmelden oder Registrieren um Kommentare zu schreiben

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • für drupal11 ein Slider Modul
  • [gelöst] W3CSS Paragraphs Views
  • Drupal 11 neu aufsetzen und Bereiche aus 10 importieren
  • Wie erlaubt man neuen Benutzern auf die Resetseite zugreifen zu dürfen.
  • [gelöst] Anzeigeformat Text mit Bild in einem Artikel, Drupal 11
  • Social Media Buttons um Insteragram erweitern
  • Nach Installation der neuesten D10-Version kein Zugriff auf Website
  • Composer nach Umzug
  • [gelöst] Taxonomie Begriffe zeigt nicht alle Nodes an
  • Drupal 11 + Experience Builder (Canvas) + Layout Builder
  • Welche KI verwendet ihr?
  • Update Manger läst sich nicht Installieren
Weiter

Neue Kommentare

  • melde mich mal wieder, da ich
    vor 2 Wochen 9 Stunden
  • Hey danke
    vor 2 Wochen 1 Tag
  • Update: jetzt gibt's ein
    vor 2 Wochen 1 Tag
  • Hallo, im Prinzip habe ich
    vor 2 Wochen 6 Tagen
  • Da scheint die Terminologie
    vor 2 Wochen 6 Tagen
  • Kannst doch auch alles direkt
    vor 3 Wochen 3 Tagen
  • In der entsprechenden View
    vor 3 Wochen 3 Tagen
  • Dazu müsstest Du vermutlich
    vor 3 Wochen 3 Tagen
  • gelöst
    vor 6 Wochen 6 Stunden
  • Ja natürlich. Dass ist etwas,
    vor 6 Wochen 1 Tag

Statistik

Beiträge im Forum: 250233
Registrierte User: 20453

Neue User:

  • ByteScrapers
  • Mroppoofpaync
  • 4aficiona2

» Alle User anzeigen

User nach Punkten sortiert:
wla9461
stBorchert6003
quiptime4972
Tobias Bähr4019
bv3924
ronald3857
md3717
Thoor3678
Alexander Langer3416
Exterior2903
» User nach Punkten
Zur Zeit sind 0 User und 25 Gäste online.

Hauptmenü

  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche

Quicklinks I

  • Infos
  • Drupal Showcase
  • Installation
  • Update
  • Forum
  • Team
  • Verhaltensregeln

Quicklinks II

  • Drupal Jobs
  • FAQ
  • Drupal-Kochbuch
  • Best Practice - Drupal Sites - Guidelines
  • Drupal How To's

Quicklinks III

  • Tipps & Tricks
  • Drupal Theme System
  • Theme Handbuch
  • Leitfaden zur Entwicklung von Modulen

RSS & Twitter

  • Drupal Planet deutsch
  • RSS Feed News
  • RSS Feed Planet
  • Twitter Drupalcenter
Drupalcenter Team | Impressum & Datenschutz | Kontakt
Angetrieben von Drupal | Drupal is a registered trademark of Dries Buytaert.
Drupal Initiative - Drupal Association