[TYPO3-german] tt_news-MORE-link in Newsletter..

Fabian König Fabian.Koenig at gmx.net
Wed Jan 3 10:29:58 CET 2007


Hi.

Ich habe es endlich geschafft, meinen Newsletter (mit direct_mail) zum 
laufen zu bekommen. *jubel,schrei*

CSS-Formatierung klappt auch prima und meine (tt_)news-Eintraege werden 
auch korrekt gesendet.
(Ich lade sie ueber den Inhaltstyp "Datensatz einfuegen" in meinen 
Newsletter. So wie im direct_mail-Manual vorgeschrieben.)


Aaaber:
In meinen News habe ich (standartmaessig) einen MEHR-Link (also 
###MORE###) um auf die Detailseite geleitet zu werden.
Hier allerdings werde ich immer nur auf die Newsletter-Seite geleitet.

Also wenn ich auf 'mehr' klicke im Newsbeitrag, komme ich auf die 
Web-Seite, die ich als Newsletter verschicke. (PID: 326, Pfad: 
foo->Newsletter->insider)

Ich habe schon im Template eine Detailansichtsseite angegeben (Pid: 262, 
Pfad: foo->home->news->Detailansicht) aber trotzdem werde ich auf die 
Falsche Seite geleitet.

Der 'mehr'-link leitet mich immer auf die Seite 
http://www.foo.de/insider.html
("Newsletter" ist ein SysFolder, daher versucht Typo3, mich auf die 
unterseite 'insider' zu leiten.)

Korrekt aber waere diese Adresse:
http://www.foo.de/home/news/detailansicht/article/xx/262.html


Wo liegt mein fehler?


Wie gesagt:
Ich habe in den Constants meines Newsletter-Templates schon
===TS===
plugin.tt_news.singlePid = 262
===TS===
ausprobiert, aber trotzdem bekomme ich den falschen Link im Newsletter 
angezeigt.



Ich hoffe mir kann jemand helfen. :(

mfg
Fabian



P.S.:
Hier noch mein komplettes TS:

===TS:CONSTANTS===
plugin.tx_directmail_pi1 {
   file.template = fileadmin/templates/newsletter/PLAIN.html
   siteUrl = http://www.foo.de/
   FlowedFormat = 0
   doubleLF = 0
   removeSplitChar =
}

baseURL = http://www.foo.de/
plugin.tt_news.singlePid = 262
===TS:CONSTANTS===


===TS:SETUP===
# Standardsprache deutsch wird festgelegt
config.sys_language_uid = 0
config.language = de
config.htmlTag_langKey = de
config.locale_all = de_DE
config.sys_language_overlay = hideNonTranslated


# 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 = 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 = 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### |
}


# 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 = 0
     HEAD.all.subpartMarker = DOCUMENT_HEADER
     #HEAD.rmTagSections = title

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

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

config.insertDmailerBoundaries = 1


# PAGE Objects
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
page.headerData.10  < temp.headTemplate
page.bodyTag = <BODY class="body">
page.stylesheet = fileadmin/templates/newsletter/style.css
===TS:SETUP===


More information about the TYPO3-german mailing list