[TYPO3-seminars] Re: [TYPO3-project-seminars] RSS Feed of Seminars List
Tobias Schaefer
tobias.schaefer at ptb.de
Wed Oct 23 19:17:17 CEST 2013
Hello,
I'm facing the same feature request like Andreas Becker 4 years ago. I'm
nearly finished, but have only two problems.
1) I can't get rid of this <div class="tx-seminars-pi1"> surounding the content
of the plugin.
2) There's no marker ###TITLE### in ###LIST_ITEM###. Instead of ###TITLE_LINK###
I need the plain title and the plain url instead of the link to the detail-page
of a seminar.
Here is the Typoscript:
lib.stdheader>
tt_content.stdWrap.innerWrap.cObject.default>
rssForSeminars = PAGE
rssForSeminars {
typeNum = 123
config.disableAllHeaderCode = 1
config.disablePrefixComment = 1
config.additionalHeaders = Content-type:text/xml
10 = TEXT
10.value (
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>PTB Seminare</title>
<link>http://intranet.ptb.de/</link>
<description>PTB Seminare</description>
<language>de</language>
<image>
<title>PTB Seminare</title>
<url>http://intranet.ptb.de/fileadmin/templates/images/ptb_logo_01.gif</url>
<link>http://intranet.ptb.de/</link>
<width>200</width>
<height>75</height>
<description>PTB Seminare</description>
</image>
<generator>TYPO3 - get.content.right</generator>
)
20 = CONTENT
20 {
table = tt_content
select {
# ID of the page containing the seminars-pi1
pidInList = 2343
}
}
30 = TEXT
30.value (
</channel>
</rss>
)
}
And this is the rss.tmpl which is selected in the seminars-plugin:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>PTB Seminare</title>
<link>http://intranet.ptb.de/</link>
<description>PTB Seminare</description>
<language>de</language>
<image>
<title>PTB Seminare</title>
<url>http://intranet.ptb.de/fileadmin/templates/images/ptb_logo_01.gif</url>
<link>http://intranet.ptb.de/</link>
<width>200</width>
<height>75</height>
<description>PTB Seminare</description>
</image>
<generator>TYPO3 - get.content.right</generator>
<!-- ###LIST_ITEM### -->
<item>
<title>###TITLE_LINK###</title>
<link>###TITLE_LINK###</link>
<description></description>
<content:encoded><![CDATA[]]></content:encoded>
<category>Seminare - (nur Intranet)</category>
<author>###ORGANIZERS###</author>
<pubDate>###DATE### ###TIME###</pubDate>
<pubLecturer></pubLecturer>
<pubInstitut></pubInstitut>
<pubWhere>###CITY###, ###PLACE###</pubWhere>
<pubOrganizer>###ORGANIZERS###</pubOrganizer>
</item>
<!-- ###LIST_ITEM### -->
</channel>
</rss>
Any Ideas how to solve these 2 problems?
Cheers, Tobias
> Hi,
>
> Andreas Becker schrieb:
>
>> How can we make an RSS Feed from all Events listed in List view?
>>
> theoretically, you could use a different typeNum and then use a
> different HTML template (and different TS setup setting, perhaps).
>
> Oliver
>
More information about the TYPO3-project-seminars
mailing list