[Typo3-german] xml feed aus tt_news

Pfoser David david_pfoser at yahoo.de
Tue Dec 13 16:50:54 CET 2005


im Setup:

###HEADER
page.headerData.500 = TEXT
page.headerData.500.value = <link rel="alternate"
type="application/rss+xml" title="RSS-Feed"
href="http://www.nebelberg.ooe.gv.at/index.php?id={$xmlnewsfeed_id}&type=100"
/>

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
rss2_tmplFile = EXT:tt_news/res/rss_2.tmpl

xmlFormat = rss2
# possibile values: rss091 / rss2 / rdf / atom03

xmlTitle = Nebelberg online - News
xmlLink = www.nebelberg.ooe.gv.at
xmlDesc = Letzte News
xmlLang = en
xmlLimit = 10
#xmlIcon = fileadmin/tt_news_article.gif
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
}
}

xmlnews = PAGE
xmlnews {
typeNum = 100
10 >
10 < plugin.tt_news
10.pid_list >
10.pid_list = {$xmlnews.pid_list}
10.singlePid = {$xmlnews.singlePid}
10.defaultCode = XML
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}
## To get an additional RDF feed add the following
rdfnews = PAGE
rdfnews < xmlnews rdfnews {
10.displayXML.xmlFormat = rdf
10.displayXML.xmlIcon = fileadmin/feed_icon_88x31.gif
typeNum = 101
}
## To get an additional Atom 0.3 feed add the
following atomnews = PAGE
atomnews < xmlnews atomnews {
10.displayXML.xmlFormat = atom03
typeNum = 102
}
xmlnews.10.backPid = 68



in constants:

# PID des Sysfolders mit den Datensätzen
plugin.tt_news.pid_list = 22

#PID der Seite mit Singleanzeige
plugin.tt_news.singlePid = 20

###RSS CONSTANTS
### RSS News-Export dieser Seite:
xmlnewsfeed_id = 68
xmlnews.pid_list = 22
xmlnews.singlePid = 20



Weiß jemand was falsch ist, bzw was ich vergessen habe könnte.


	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



More information about the TYPO3-german mailing list