Code TypoScript Template Constans
### rss-feed Configure tt_news to display the xml template ###
# Seite, die die News List enthält
[globalVar = TSFE:id=15]
xmlnewsfeed_id = 15
# page Datenbanken
[globalVar = TSFE:id=30]
xmlnewsfeed_id = 30
[GLOBAL]
plugin.tt_news {
displayXML {
xmlTitle = www.xo-data.de - Gießen
xmlLink = http://localhost/xo/index.php?id=30
xmlFormat = rss2
rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl
# mögliche: rss091 / rss2 / rdf / atom03
xmlFormat = rss2
# Anzahl News in Reader
xmlLimit = 10
xmlDesc = Krügl + Thöle GbR
# Sprache
xmlLang = de
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 = 425 | ...
subheader_stdWrap.ifEmpty.field = bodytext
xmlLastBuildDate = 1
xmlIcon = fileadmin/template/main/images/rssfeed.png
}
}
Code TypoScript Template Setup
### rss-feed ###
# This enables the xml news feed
xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$plugin.tt_news.pid_list}
10.singlePid = {$plugin.tt_news.singlePid}
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}
rdffeed = PAGE
rdffeed < xmlnews
rdffeed {
10.displayXML.xmlFormat = rdf
10.displayXML.xmlIcon = fileadmin/template/main/images/rssfeed.png
typeNum = 101
}
# To get an additional Atom 0.3 feed add the following
atom03feed = PAGE
atom03feed < xmlnews
atom03feed {
10.displayXML.xmlFormat = atom03
typeNum = 102
}
atom1feed = PAGE
atom1feed < xmlnews
atom1feed {
10.displayXML.xmlFormat = atom1
typeNum = 103
}
# browsers will detect this site as a RSS-source
page.headerData.500 = TEXT
# default
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://localhost/xo/index.php?id={$xmlnewsfeed_id}&L=0&type=100" />
# language
[globalVar = GP:L = 0]
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://localhost/xo/index.php?id={$xmlnewsfeed_id}&L=0&type=100" />
[globalVar = GP:L = 1]
page.headerData.500.value = <link rel="alternate" type="application/rss+xml" title="RSS-Feed" href="http://localhost/xo/index.php?id={$xmlnewsfeed_id}&L=1&type=100" />
[global]
Template Root
In Include static (from extensions) news-feed (RSS, RDF, ATOM)(tt_news) einbinden.