Hi,
ich muss bei dem plugin.alt.plaintext etwas komplett falsch verstanden haben:
Ich habe eine HTML Seite die ich nun als reinen Text für einen Newsletter umwandeln will.
Nachdem ich in der Typo3 UG Germany recherchiert habe, habe ich das plugin.alt.plaintext gefunden.
Nachdem ich das bei den Include Statics eingefügt hatte, dachte ich mir, dass das Plugin nun meinen Content umschreiben würde. Aber leider tut er das nicht, es gibt immer noch die <p>-Tags und die Tabellen.
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16:
| plain_page = PAGE plain_page.typeNum = 99 plain_page.config.disableAllHeaderCode = 1 plain_page.10 < styles.content.getLeft plain_page.20 = TEXT plain_page.20 < plugin.tt_news plain_page.20{ templateFile = EXT:tt_news/pi/news_template_newsletter_plain.tmpl code > code = LIST pid_list > limit = listStartId = listOrderBy = title asc displayList.title_stdWrap.wrap = } |
das tt_news Template besteht nur aus dem Headermarker einem brake und dann dem Content der News.
Nachdem aber das Plugin nicht so wollte, habe ich weiter gesucht und dann ein Beispiel gefunden:
http://typo3.org/documentation/docum...intextLib_inc/
Nach diesem Beispiel habe ich folgenden Code erstellt:
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92:
| lib.renderObj = USER lib.renderObj.userFunc = user_plaintext->main_plaintext lib.renderObj { header.defaultType = 1 header.date = D-m-Y header.datePrefix = |Date: | header.linkPrefix = | - Headerlink: | header.1.preLineLen = 76 header.1.postLineLen = 76 header.1.preBlanks=1 header.1.stdWrap.case = upper header.2 < .header.1 header.2.preLineChar=* header.2.postLineChar=* header.3.preBlanks=2 header.3.postBlanks=1 header.3.stdWrap.case = upper header.4 < .header.1 header.4.preLineChar= = header.4.postLineChar= = header.4.preLineBlanks= 1 header.4.postLineBlanks= 1 header.5.preBlanks=1 header.5.autonumber=1 header.5.prefix = |: >> | siteUrl = {$plugin.alt.plaintext.siteUrl} defaultOutput ( | [Unrendered Content Element; ###CType### ] | ) uploads.header = |DOWNLOADS:| images.header = |IMAGES:| images.linkPrefix = | - Imagelink: | images.captionHeader = |CAPTION:| bulletlist.0.bullet = |* | bulletlist.1.bullet = |# | bulletlist.2.bullet = | - | bulletlist.3.bullet = |> | bulletlist.3.secondRow = |. | bulletlist.3.blanks = 1 menu = <tt_content.menu.20 shortcut = <tt_content.shortcut.20 shortcut.0.conf.tt_content = <lib.renderObj shortcut.0.tables = tt_content bodytext.stdWrap.parseFunc.tags { link < styles.content.parseFunc.tags.link typolist = USER typolist.userFunc = user_plaintext->typolist typolist.siteUrl = {$plugin.alt.plaintext.siteUrl} typolist.bulletlist < temp.renderObj.bulletlist typohead = USER typohead.userFunc = user_plaintext->typohead typohead.siteUrl = {$plugin.alt.plaintext.siteUrl} typohead.header < temp.renderObj.header typocode = USER typocode.userFunc = user_plaintext->typocode typocode.siteUrl = {$plugin.alt.plaintext.siteUrl} } } plain_page = PAGE plain_page.typeNum = 99 plain_page.config.disableAllHeaderCode = 1 plain_page.10 < styles.content.getLeft plain_page.10.renderObj = < lib.renderObj plain_page.20 = TEXT plain_page.20 < plugin.tt_news plain_page.20{ templateFile = EXT:tt_news/pi/news_template_newsletter_plain.tmpl code > code = LIST pid_list > limit = listStartId = listOrderBy = title asc displayList.title_stdWrap.wrap = } plain_page.20.renderObj < lib.renderObj |
Mein Output sieht wie folgt aus:
HTML-Code:
<!--DMAILER_SECTION_BOUNDARY_0--><!--DMAILER_SECTION_BOUNDARY_END-->
(1) Hallo Welt<br> <p style="margin:0 0 0 0;">Hallo, ich schreibe hier gerade einen kleinen Test des Systems
</p> <p style="margin:0 0 0 0;">Sogar mit einem <a href="http://www.google.de" target="_blank" title="">Link</a></p><br>
(2)Tabelle<br> <p style="margin:0 0 0 0;">Und jetzt mal eine Tabelle
</p> <p style="margin:0 0 0 0;"> </p> <p style="margin:0 0 0 0;"> </p><TABLE class=NOBORDER borderColor=#000000 cellSpacing=0 cellPadding=0 background="" border=0><TBODY><TR><TD><p style="margin:0 0 0 0;"> domainname</p></td><TD><p style="margin:0 0 0 0;">preis </p></td></TR><TR><TD><p style="margin:0 0 0 0;"> benjaminnagel.de</p></td><TD><p style="margin:0 0 0 0;">zu teuer fr euch </p></td></TR></TBODY></TABLE><p style="margin:0 0 0 0;"> </p> <p style="margin:0 0 0 0;">und noch eine:
</p> <p style="margin:0 0 0 0;"> </p> <p style="margin:0 0 0 0;"> </p> <p style="margin:0 0 0 0;"> </p><TABLE class=NOBORDER style="WIDTH: 399px; HEIGHT: 30px" borderColor=#000000 cellSpacing=0 cellPadding=0 background="" border=0><TBODY><TR><TD><p style="margin:0 0 0 0;"> Hallo Welt</p></td><TD><p style="margin:0 0 0 0;"> test eintrag</p></td></TR><TR><TD><p style="margin:0 0 0 0;"> asdasdasd</p></td><TD><p style="margin:0 0 0 0;"> asdasdasdasd</p></td></TR></TBODY></TABLE><p style="margin:0 0 0 0;"> </p> <p style="margin:0 0 0 0;"> </p><br>
In dem Output wird der tt_news Teil angezeigt, aber der Content Bereich aus styles.content.getLeft wird einfach übergangen.
Die falsche Formatierung kommt noch dazu.
Kennt jemand dieses Problem oder habe ich hier einfach nur ein rießen Brett vorm Kopf??
Danke für eure Hilfe
Benjamin Nagel