[TYPO3] tt_news more-link in direct_mail?
Fabian König
Fabian.Koenig at gmx.net
Fri Jan 5 09:16:17 CET 2007
Hi Joris.
1. You could not insert the tt_news-Module on your newsletter-page.
You have to include the news via "insert records"-content-type.
2. Here is my source (works fine, just the link-problem):
===TS:CONSTANTS===
plugin.tx_directmail_pi1 {
file.template = fileadmin/templates/newsletter/PLAIN.html
siteUrl = http://www.foo.com/
FlowedFormat = 0
doubleLF = 0
removeSplitChar =
}
baseURL = http://www.foo.com/
===TS:CONSTANTS===
===TS:SETUP===
config.insertDmailerBoundaries = 1
# News Config
plugin.tt_news.templateFile = fileadmin/templates/newsletter/NEWS.html
# Direct Mail Config
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 = 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
# Direct Mail Plaintext Config
tx_directmail_pi1 >
tx_directmail_pi1 = PAGE
tx_directmail_pi1.typeNum=99
tx_directmail_pi1.config.no_cache=1
tx_directmail_pi1.config.disableAllHeaderCode = 1
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### |
}
===TS:SETUP===
That's all about direct_mail.
If you need more help, please send me a mail: koenig(AT)bluhouse.de
Joris Willems schrieb:
> I am also intrested in seeing the typoscript because I am trying to do the
> same but I get "Unrendered content element" for the tt_news plugin.
More information about the TYPO3-english
mailing list