[TYPO3] CoolURI tt_news rss feed
Michael Ditsch
michael.ditsch at fh-weihenstephan.de
Wed Sep 26 10:18:52 CEST 2007
Hello,
using TYPO3 4.1.2, cooluri 1.0.5 and tt_news 2.5.0 I tried to create an
rss feed by using CoolURIs' project's LinkManager:
URI: rss.xml
Parameters: id=4&type=100 (page with tt_news plugin)
rss.xml will show tt_news rss template but no tt_news entries.
Do I need an entry in CoolUriConf.xml like in RealURL ext_localconf.php:
'rss.xml' => array(
'keyValues' => array(
'type' => 100,
),
Something like:
<valuemap>
<parameter>type</parameter>
<value key="xml">100</value>
</valuemap>
Thanks for your help!
Kind regards
Michael
TS Configuration tt_news for RSS-Feed:
######################
# RSS Feed Constants #
######################
plugin.tt_news.displayXML {
# rss091_tmplFile = EXT:tt_news/res/rss_0_91.tmpl
# rdf_tmplFile = EXT:tt_news/res/rdf.tmpl
# atom03_tmplFile = EXT:tt_news/res/atom_0_3.tmpl
# atom1_tmplFile = EXT:tt_news/res/atom_1_0.tmpl
rss2_tmplFile = fileadmin/pathtotemplate/rss_2.tmpl
# possibile values: rss091 / rss2 / rdf / atom03 / atom1
xmlFormat = rss2
xmlTitle = Title
xmlLink = http://mydomain.com/
xmlDesc = Description
xmlLang = lang
xmlCaching = 1
xmlIcon = fileadmin/pathtoicon/icon.png
dontInsertSiteUrl = 1
title_stdWrap.htmlSpecialChars = 1
title_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.stripHtml = 1
subheader_stdWrap.htmlSpecialChars = 1
subheader_stdWrap.htmlSpecialChars.preserveEntities = 1
subheader_stdWrap.crop = 100 | ... | 1
subheader_stdWrap.ifEmpty.field = bodytext
xmlLastBuildDate = 1
}
##################
# RSS Feed Setup #
##################
# This enables the xml news feed
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$pid_list}
10.singlePid = {$singlePid}
10.backPid = {$backPid}
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 0
xhtml_cleaning = 0
}
}
More information about the TYPO3-english
mailing list