[TYPO3-german] Direct Mail - Newsletter mit mehrfachem Content-Rendering
Timo Zimmermann
timoz at web.de
Tue Sep 18 12:03:53 CEST 2012
Hallo Liste,
ich habe kürzlich auf Typo3 4.5.19 (ehemals 4.5.13) aktualisiert und in diesem Zug auch von einer 2.x-Version (2.6) auf die Version 3.0.2 von Direct Mail.
Seit diesem Update habe ich das Problem, dass meine versendeten Newsletter aus Direct Mail die entsprechenden Inhalte mehrfach enthalten. Ein Newsletter wird so in einer einzigen E-Mail dreifach ausgegeben. Die Vorschau im Browser der Seite passt, der Testnewsletter allerdings ist schon falsch. Außerdem stimmt meiner Meinung nach das charset auch nicht mehr (Umlaute werden nicht angezeigt).
Ich weiß ehrlich gesagt nicht, wo ich suchen/ansetzen soll. Ich arbeite nicht mit Kategorien, das TS hat vor dem Update funktioniert:
SETUP:
config.index_enable = 0
config.spamProtectEmailAddresses >
config.removeDefaultJS = 1
tx_directmail_pi1.10.template.file = fileadmin/templates/ext/newsletter_plaintext.tmpl
tx_directmail_pi1.10.marks {
HEADERTEXT = TEXT
HEADERTEXT.data = field:title
CONTENT < styles.content.get
CONTENT.renderObj = < plugin.tx_directmail_pi1
FOOTER < styles.content.getBorder
# FOOTER.select.pidInList = 195
FOOTER.select.pidInList = 34
FOOTER.renderObj = < plugin.tx_directmail_pi1
FOOTER.wrap = ------------------------------------ |
}
page >
page = PAGE
page {
headerData.10= TEXT
headerData.10.value (
<style type="text/css">
<!--
@charset "utf-8";
* { margin:0px; padding:0px; }
img, a img {border:0;}
.contenttable {margin:0; padding:0;}
.contenttable tbody, tr, td, p, font {margin:0; padding:0;}
h1 {lineheight:14px; margin:0; padding:0;}
-->
</style>
)
bodyTag = <body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#eeeeee" leftmargin="0" style="margin: 0px; padding:0px; background-color: #eee; font-family:Tahoma, Verdana, Arial, sans-serif; font-size:13px; line-height:19px; color:#666;">
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/templates/ext/newsletter_html.tmpl
10.marks {
HEADERLINK = TEXT
HEADERLINK {
value= klicken Sie hier
typolink.parameter.data = page:uid
typolink.ATagParams = style="color:#2131AD;"
typolink.extTarget = _blank
typolink.target = _blank
wrap = <p style="font-size: 11px; line-height: 15px; font-family: 'Trebuchet MS', Arial, Helvetica, sans_serif; color: #666; margin: 0px;">Probleme bei der Darstellung des Newsletters? Dann | für die Webansicht</p>
}
LOGO = IMAGE
LOGO.file = fileadmin/logo.jpg
HEADERTEXT = TEXT
HEADERTEXT.data = field:subtitle //field:title
HEADERTEXT.wrap =<h1 style="font-size: 16px; line-height: 18px;font-family: 'Trebuchet MS', Arial, Helvetica, sans_serif; color: #666666; margin: 0px 0px 40px 10px;font-weight: bold;">|</h1>
CONTENT < styles.content.get
## footer in border to be able to define different tags per column
FOOTER < styles.content.getBorder
# FOOTER.select.pidInList = 3
FOOTER.select.pidInList = 34
}
}
## output headers
lib.stdheader.stdWrap.dataWrap = |
lib.stdheader.10 {
1.dataWrap = <h1 style="padding:0; margin:0px 10px 0px 10px; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size:25px; font-weight:normal; line-height:33px; color:#666;">|</h1>
2.dataWrap = <h2 style="padding:0; margin:0px 10px 0px 10px; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size:18px; font-weight:normal; line-height:24px; color:#666;">|</h2>
3.dataWrap = <h3 style="padding:0; margin:10px; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size:13px; font-weight:bold; line-height:17px; color:#666;">|</h3>
4.dataWrap = <h4 style="padding:0; margin:10px; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size:13px; font-weight:bold; line-height:17px; color:#666;">|</h4>
## extra h2 version
5.dataWrap = <h2 style="padding:0; margin:0px; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size:18px; font-weight:normal; line-height:24px; color:#666;">|</h2>
}
## style for a tag
lib.parseFunc_RTE.tags.link.typolink.ATagParams = style="color:#2131AD; text-decoration:none; border:0px;"
## no class for p tag
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
## p tag for all columns
#lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.style = font-family: Tahoma, Arial, Helvetica, sans-serif; color: #333333; font-size:13px; line-height:18px; margin:10px; padding: 0px;
## p tag according to column
temp.tt_content.ptext< tt_content.text.20
tt_content.text.20 >
tt_content.text.20 = CASE
tt_content.text.20 {
key.field=colPos
## column for content
0 < temp.tt_content.ptext
0.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes.P.style= font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #666; font-size:13px; line-height:16px; margin:10px; padding: 0px;
## column for footer
3 < temp.tt_content.ptext
3.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes.P.style= font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #333333; font-size:0px; line-height:16px; margin:10px; padding: 0px;
default < temp.tt_content.ptext
default.parseFunc.nonTypoTagStdWrap.encapsLines.addAttributes.P.style= font-family: 'Trebuchet MS', Arial, Helvetica, sans-serif; color: #333333; font-size:13px; line-height:18px; margin:10px; padding: 0px;
}
######## css styled content ##########
## no wrap around header
tt_content.textpic.20.0.text.10.10.stdWrap.dataWrap = |
tt_content.textpic.20.text.10.10.stdWrap.dataWrap = |
tt_content.textpic.20.default.text.10.10.stdWrap.dataWrap = |
tt_content.textpic.20.text.wrap >
## images
tt_content.image.20.renderMethod = simple
tt_content.image.20.rendering.simple.imageStdWrapNoWidth.wrap = |
tt_content.image.20.rendering.simple.imageStdWrap.dataWrap = |
tt_content.image.20.rendering.simple.caption.wrap = |
tt_content.image.20.layout {
default.value = <table cellspacing="0" cellpadding="0" style="width: 100%; text-align: left; margin: 0;"><tr><td valign="top" align="center" style="text-align: center;">###IMAGES###</td></tr><tr><td valign="top">###TEXT###</td></tr></table>
26.value = <table cellspacing="10" cellpadding="0" style="width: 100%; text-align: left; margin: 0;"><tr><td valign="top">###IMAGES###</td><td valign="top">###TEXT###</td></tr></table>
}
## default frame
tt_content.stdWrap.innerWrap.cObject.0 = TEXT
tt_content.stdWrap.innerWrap.cObject.0.value = <tr><td valign="top">|</td></tr>
## frame for highlighted content
tt_content.stdWrap.innerWrap.cObject.30 = TEXT
tt_content.stdWrap.innerWrap.cObject.30.value = <tr><td valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0" style="border-left:10px solid #990000;"><tr><td valign="top">|</td></tr></table></td></tr><tr><td> </td></tr>
## left column box
tt_content.stdWrap.innerWrap.cObject.40 = TEXT
tt_content.stdWrap.innerWrap.cObject.40.value = <tr><td valign="top"><table width="600" cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="background: #F6F6F6;border-top: 2px solid #C9C9C9;border-bottom: 2px solid #C9C9C9;width: 50%;">|</td>
##right column box
tt_content.stdWrap.innerWrap.cObject.45 = TEXT
tt_content.stdWrap.innerWrap.cObject.45.value = <td valign="top" style="background: #F6F6F6;border-top: 2px solid #C9C9C9;border-bottom: 2px solid #C9C9C9; width: 50%;">|</td></tr></table></td></tr><tr><td> </td></tr>
TEMPLATE HTML-Version:
<!--DMAILER_SECTION_BOUNDARY_--> <html>
<head>
<title>Newsletter </title>
<style type="text/css" title="text/css" media="screen">
.contenttable { margin:0; padding:0; }
.contenttable tbody, tr, td, p {margin:0; padding:0;}
</style>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#eeeeee" style="background: #eeeeee;">
<tr>
<td align="center">
<table width="620" border="0" cellspacing="0" cellpadding="0" style="width:620px;padding:0px;">
<tr>
<td align="center">
###HEADERLINK###
</td>
</tr>
</table><br>
<table width="620" cellspacing="0" cellpadding="0" border="0" bgcolor="#ffffff" style="background: #ffffff; border-bottom: 6px solid #ccc; width:620px;border-collapse: collapse;">
<tr>
<td align="left">
<table width="620" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff" style="width:620px; padding: 0px; background-color: #ffffff;">
<tr>
<td align="left" valign="bottom" width="340" color="#000000" height="70" style="width:360px; height:70px;">
###HEADERTEXT###
</td>
<td align="right" valign="bottom">
<a href="http://www.metzgerei-rentschler.de" target="_blank">###LOGO###</a>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="width:100%;">
<tr>
<td></td>
</tr>
###CONTENT###
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
<table width="620" border="0" cellspacing="0" cellpadding="10" style="width:620px;padding:10px;">
<tr>
<td align="center">
###FOOTER###
</td>
</tr>
<tr><td><center><p style="font-size:11px;align:center;"><a href="http://www.meineurl.de/?id=29&cmd=edit&aC=###SYS_AUTHCODE###&rU=###USER_uid###" >Newsletter abmelden hier klicken</a></p></center></td></tr>
</table>
</td>
</tr>
</table>
</body>
</html> <!--DMAILER_SECTION_BOUNDARY_END-->
Ist mir noch zu helfen?
Grüße
Timo Zimmermann
More information about the TYPO3-german
mailing list