[TYPO3] tt_news with RSS
Lamb, Brian
blamb at jcvi.org
Tue Sep 30 17:59:43 CEST 2008
Kind of long but...
plugin.tt_news {
archiveMode = year
useHRDates = 1
archiveTitleCObject.10 {
if.value.date = Y
if.equals.data = GPvar:tx_ttnews|year
strftime = %Y
wrap = |
}
archiveTitleCObject.20 {
if.value.date = Y
if.equals.data = GPvar:tx_ttnews|year
strftime = %Y
}
}
plugin.tt_news {
archiveMode = year
useHRDates = 1
archiveTitleCObject.10 {
if.value.date = Y
if.equals.data = GPvar:tx_ttnews|year
strftime = %Y
wrap = |
}
archiveTitleCObject.20 {
if.value.date = Y
if.equals.data = GPvar:tx_ttnews|year
strftime = %Y
}
}
# Configure tt_news to display the xml template
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/template/main/rss_templates/rss_2.tmpl
# possibile values: rss091 / rss2 / rdf / atom03 / atom1
xmlFormat = rss2
xmlTitle = My site: Press Releases
xmlLink = http://www.mysite.org/cms/rss_debug/?type=100
xmlDesc =
xmlLang = en
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
}
}
## 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
}
}
## To get an additional RDF feed add the following
rdffeed = PAGE
rdffeed < xmlnews
rdffeed {
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
atom03feed = PAGE
atom03feed < xmlnews
atom03feed {
10.displayXML.xmlFormat = atom03
typeNum = 102
}
## To get an additional Atom 1.0 feed add the following
atom1feed = PAGE
atom1feed < xmlnews
atom1feed {
10.displayXML.xmlFormat = atom1
typeNum = 103
}
Note that this is basically the setup from the tt_news manual.
Thanks in advance.
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Dan
Osipov
Sent: Tuesday, September 30, 2008 9:31 AM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] tt_news with RSS
It would seem you're missing some configuration to make the tt_news RSS
feed work properly. Did you define a category? What about a storage
page?
Can you post your TypoScript code, so that we can find an omission?
Dan Osipov
Calkins Media
http://danosipov.com/blog/
Lamb, Brian wrote:
> I'm having a little difficulty with RSS feeds on my site. I think it
is related to my understanding of how it should work as opposed to how
it actually works.
>
> For example, suppose I create page id=10. On this page I have a
tt_news list item that displays all tt_news items flagged with tt_news
category "Topic A".
>
> Now I thought whatever shows up on page id=10 will show up in the RSS
feed.
>
> However, it seems only tt_news items created on page id=10 will
populate the RSS feed. Additionally, it seems any tt_news item created
on that page will show up in the RSS feed regardless of category.
>
> This opens the door to several questions:
>
> 1) Is it possible to create an RSS feed that mirrors the display of a
tt_news list element?
> 2) Is it possible to populate said RSS feed with preexisting data? The
ones I set up only add new items, not those already present.
>
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list