[TYPO3-german] Head-Bereich im Plaintext ausblenden?

Fabian König Fabian.Koenig at gmx.net
Tue Jan 2 15:27:40 CET 2007


Hi.

Ich habe ein Problem, und zwar wird mir im Plaintext noch der 
Head-Bereich und der Body-Tag angezeigt.
(Also nur alles zwischen <body> und </body> wird in Plaintext angezeigt.

Davor und dahinter ist noch HTML.

Wie bekomme ich das weg?

Hier mein komplettes TS
===TS===
# News Config
plugin.tt_news.templateFile = fileadmin/templates/newsletter/NEWS.html


plugin.tx_directmail_pi1 = USER
plugin.tx_directmail_pi1.userFunc = tx_directmail_pi1->main
plugin.tx_directmail_pi1 {
   siteUrl = {$plugin.tx_directmail_pi1.siteUrl}
   flowedFormat = {$plugin.tx_directmail_pi1.flowedFormat}

   header.defaultType = 1
   header.date = D-m-Y
   header.datePrefix = |###HEADER_DATE_PREFIX### |
   header.linkPrefix = | ###HEADER_LINK_PREFIX### |
   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.removeSplitChar = {$plugin.tx_directmail_pi1.removeSplitChar}
   header.5.preBlanks=1
   header.5.autonumber=1
   header.5.prefix = |: >> |
   defaultOutput (
|
[###UNRENDERED_CONTENT### ###CType### ]
|
   )
   #uploads.header = |###UPLOADS_HEADER###|
   #images.header = |###IMAGES_HEADER###|
   #images.linkPrefix = | ###IMAGE_LINK_PREFIX### |
   #images.captionHeader = |###CAPTION_HEADER###|
   uploads = 0
   uploads.header = ||
   images.header = ||
   images.linkPrefix = ||
   images.captionHeader = ||
   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 =< plugin.tx_directmail_pi1
   shortcut.0.tables = tt_content
   bodytext.doubleLF = {$plugin.tx_directmail_pi1.doubleLF}
   bodytext.stdWrap.parseFunc.tags {
     link =< lib.parseFunc_RTE.tags.link
     typolist = USER
     typolist.userFunc = tx_directmail_pi1->typolist
     typolist.siteUrl = {$plugin.tx_directmail_pi1.siteUrl}
     typolist.bulletlist =< plugin.tx_directmail_pi1.bulletlist
     typohead = USER
     typohead.userFunc = tx_directmail_pi1->typohead
     typohead.siteUrl = {$plugin.tx_directmail_pi1.siteUrl}
     typohead.header =< plugin.tx_directmail_pi1.header
     typocode = USER
     typocode.userFunc = tx_directmail_pi1->typocode
     typocode.siteUrl = {$plugin.tx_directmail_pi1.siteUrl}
   }
}

includeLibs.tx_directmail_pi1 = 
EXT:direct_mail/pi1/class.tx_directmail_pi1.php

tx_directmail_pi1 >
tx_directmail_pi1 = PAGE
tx_directmail_pi1.typeNum=99
tx_directmail_pi1.config.disableAllHeaderCode = 0
tx_directmail_pi1.10 = TEMPLATE
tx_directmail_pi1.10 {
   template = FILE
   template.file = {$plugin.tx_directmail_pi1.file.template}
   marks.CONTENT < styles.content.getLeft
   marks.CONTENT.renderObj = < plugin.tx_directmail_pi1
   marks.DATE = TEXT
   marks.DATE.data = date:U
   marks.DATE.strftime = %e. %B %Y
}
tx_directmail_pi1_test < tx_directmail_pi1
tx_directmail_pi1_test {
   wrap = <pre>|</pre>
   typeNum=199
   config.no_cache=1
}


plugin.tx_directmail_pi1 {
   shortcut.0.conf.tt_news =< plugin.tt_news
   shortcut.0.conf.tt_news.code = PLAINTEXT
   shortcut.0.conf.tt_news.defaultCode = PLAINTEXT
   shortcut.0.conf.tt_news.displayCurrentRecord = 1
   shortcut.0.conf.tt_news.plainTextConf < plugin.tx_directmail_pi1
   shortcut.0.tables = tt_content,tt_news

   tt_news_author.defaultType = 3
   tt_news_author.date = D-m-Y
   tt_news_author.prefix = |###TT_NEWS_AUTHOR_PREFIX### |
   tt_news_author.datePrefix = |###TT_NEWS_AUTHOR_DATE_PREFIX### |
   tt_news_author.emailPrefix = | ###TT_NEWS_AUTHOR_EMAIL_PREFIX### |
   tt_news_author.1.preLineLen = 76
   tt_news_author.1.postLineLen = 76
   tt_news_author.1.preBlanks=1
   tt_news_author.1.stdWrap.case = upper
   tt_news_author.2 < .tt_news_author.1
   tt_news_author.2.preLineChar=*
   tt_news_author.2.postLineChar=*
   tt_news_author.3.preBlanks=1
   tt_news_author.3.stdWrap.case = upper

   tt_news_author.4 < .tt_news_author.1
   tt_news_author.4.preLineChar = =
   tt_news_author.4.postLineChar = =
   tt_news_author.4.preLineBlanks= 1
   tt_news_author.4.postLineBlanks= 1

   tt_news_short < .bodytext
   tt_news_short.header = |###TT_NEWS_SHORT_HEADER### |

   tt_news_bodytext < .bodytext
   tt_news_bodytext.header = |###TT_NEWS_BODYTEXT_HEADER### |
}


# Main Config
config.xhtml_cleaning = all
config.doctype = xhtml_trans


# RealURL Config
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1

config.baseURL = {$baseURL}


# TEMPLATE Objects
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
   template =< plugin.tx_automaketemplate_pi1
   workOnSubpart = DOCUMENT_BODY

   marks.CONTENT < styles.content.getLeft
   #marks.DATE < styles.content.lastupdate

   marks.DATE = TEXT
   marks.DATE {
     data = page:lastUpdated
     date = d.m.Y
     wrap = |
     data = register : SYS_LASTCHANGED
   }
}

temp.headTemplate = TEMPLATE
temp.headTemplate {
   template =< plugin.tx_automaketemplate_pi1
   workOnSubpart = DOCUMENT_HEADER
}

# Autoparser
plugin.tx_automaketemplate_pi1 {
   content = FILE
   content.file = fileadmin/templates/newsletter/HTML.html
   elements {
     #HEAD.all = 1
     #HEAD.all.subpartMarker = DOCUMENT_HEADER
     #HEAD.rmTagSections = title

     BODY.all = 1
     BODY.all.subpartMarker = DOCUMENT_BODY

     TD.all = 1
   }
   #relPathPrefix = fileadmin/templates/
}


# PAGE Objects
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.20 = COA
page.headerData.20 {
   10 = TEXT
   10.value = <style type="text/css">@import 
url("https://www.foo.de/fileadmin/templates/newsletter/style.css");</style>
}
page.headerData.10  < temp.headTemplate
page.bodyTag = <BODY class="body">
page.includeCSS {
   file1 = fileadmin/templates/newsletter/style.css
}
===TS===
(Wichtig ist vmtl. nur das letzte drittel..)

Also, was muss ich machen, damit das HTML-Zeugs auch noch verschwindet?

Danke :)


More information about the TYPO3-german mailing list