[TYPO3-german] direct mail und plaintext

Fabian König Fabian.Koenig at gmx.net
Fri Dec 22 12:15:39 CET 2006


Ah, okay, ich hab's..
Die Doku und der Beispiel-TS hatte mich etwas verwirrt ;)

Fuer alle Unwissenden:

Einfach folgendes an das normale TS anfuegen:
===TS===
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 = 1
	additionalHeaders = Content-type:text/plain
}
tx_directmail_pi1.10 = TEMPLATE
tx_directmail_pi1.10 {
	template = FILE
	template.file = fileadmin/templates/PLAIN_TEMPLATE.html
	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
}
===TS===


Fabian König schrieb:
> Hi.
> 
> Standartmaessig wird in der Plaintext-Ausgabe der normale 
> "styles.content.get" verwendet.
> Ich moechte aber "styles.content.getLeft" ausgegeben haben.
> 
> Wie mache ich das?
> 
> 
> Ich habe schon folgendes ausprobiert:
> ===TS===
> ...
> temp.mainTemplate = TEMPLATE
> temp.mainTemplate {
>   template =< plugin.tx_automaketemplate_pi1
>   workOnSubpart = DOCUMENT_BODY
>   marks.CONTENT < styles.content.getLeft
> }
> ...
> ===TS===
> 
> Aber da wird nur in der normalen Ausgabe der linke Seiteninhalt 
> (styles.content.getLeft) verwendet. im Plaintext wird immernoch der 
> normale Inhalt aus der Mitte (styles.content.get) ausgegeben :(
> 
> Es soll immer der LINKE Content ausgegeben werden.
> Wie mache ich das??
> 
> mfg
> Fabian


More information about the TYPO3-german mailing list