Commit 0ea58419 authored by speedprogs_de's avatar speedprogs_de

added basic xml structure to rss templates

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@45165 735d13b6-9817-0410-8766-e36946ffe9aa
parent 87d58857
......@@ -4,4 +4,31 @@
plugin.tx_terfe2.rssOutput {
# cat=TER Frontend - RSS/rss/100; type=int+; label=Type number of the RSS page object
typeNum = 95831
# cat=TER Frontend - RSS/rss/110; type=string; label=Title of the RSS feed
title =
# cat=TER Frontend - RSS/rss/120; type=string; label=Link to website
link =
# cat=TER Frontend - RSS/rss/130; type=string; label=Description
description =
# cat=TER Frontend - RSS/rss/140; type=string; label=Language
language = en
# cat=TER Frontend - RSS/rss/150; type=string; label=Small image
image =
# cat=TER Frontend - RSS/rss/160; type=int+; label=Image width
imageWidth =
# cat=TER Frontend - RSS/rss/170; type=int+; label=Image height
imageHeight =
# cat=TER Frontend - RSS/rss/180; type=string; label=RSS documentation
docs = http://blogs.law.harvard.edu/tech/rss
# cat=TER Frontend - RSS/rss/190; type=string; label=Webmaster email address
webmaster =
}
\ No newline at end of file
......@@ -2,7 +2,16 @@
# RSS output configuration ot the extension "ter_fe2"
# ======================================================================
plugin.tx_terfe2.settings.rssOutput {
typeNum = {$plugin.tx_terfe2.rssOutput.typeNum}
typeNum = {$plugin.tx_terfe2.rssOutput.typeNum}
title = {$plugin.tx_terfe2.rssOutput.title}
link = {$plugin.tx_terfe2.rssOutput.link}
description = {$plugin.tx_terfe2.rssOutput.description}
language = {$plugin.tx_terfe2.rssOutput.language}
image = {$plugin.tx_terfe2.rssOutput.image}
imageWidth = {$plugin.tx_terfe2.rssOutput.imageWidth}
imageHeight = {$plugin.tx_terfe2.rssOutput.imageHeight}
docs = {$plugin.tx_terfe2.rssOutput.docs}
webmaster = {$plugin.tx_terfe2.rssOutput.webmaster}
}
rssOutput = PAGE
......
......@@ -11,4 +11,8 @@
<h3>JSON Output</h3>
<f:link.action action="listLatest" format="json" pageType="{settings.jsonOutput.typeNum}">&raquo; New and Updated Extensions</f:link.action><br />
<f:link.action action="list" format="json" pageType="{settings.jsonOutput.typeNum}">&raquo; All Extensions</f:link.action><br />
<h3>RSS Output</h3>
<f:link.action action="listLatest" format="rss" pageType="{settings.rssOutput.typeNum}">&raquo; New and Updated Extensions</f:link.action><br />
<f:link.action action="list" format="rss" pageType="{settings.rssOutput.typeNum}">&raquo; All Extensions</f:link.action><br />
</f:section>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{settings.rssOutput.title}</title>
<link>{settings.rssOutput.link}</link>
<description>{settings.rssOutput.description}</description>
<language>{settings.rssOutput.language}</language>
<image>
<title>{settings.rssOutput.title}</title>
<url>{settings.rssOutput.image}</url>
<link>{settings.rssOutput.link}</link>
<width>{settings.rssOutput.imageWidth}</width>
<height>{settings.rssOutput.imageHeight}</height>
<description>{settings.rssOutput.description}</description>
</image>
<generator>TYPO3</generator>
<docs>{settings.rssOutput.docs}</docs>
<webMaster>{settings.rssOutput.webmaster}</webMaster>
<lastBuildDate>Wed, 19 May 2010 16:42:00 +0200</lastBuildDate>
<f:for each="{extensions}" as="extension">
<item>
<title>{extension.lastVersion.title}</title>
<link><f:link.action action="show" arguments="{extension : extension}"><!-- REPLACE WITH OWN VIEW HELPER FOR URL ONLY --></f:link.action></link>
<guid><f:link.action action="download" arguments="{extension : extension, version : extension.lastVersion}"><!-- REPLACE WITH OWN VIEW HELPER FOR URL ONLY --></f:link.action></guid>
<description>{extension.lastVersion.description}</description>
<content:encoded><![CDATA[]]></content:encoded>
<pubDate>{extension.lastVersion.uploadDate} <!-- ADD VIEW HELPER FOR RSS LIKE DATE FORMAT --></pubDate>
</item>
</f:for>
</channel>
</rss>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{settings.rssOutput.title}</title>
<link>{settings.rssOutput.link}</link>
<description>{settings.rssOutput.description}</description>
<language>{settings.rssOutput.language}</language>
<image>
<title>{settings.rssOutput.title}</title>
<url>{settings.rssOutput.image}</url>
<link>{settings.rssOutput.link}</link>
<width>{settings.rssOutput.imageWidth}</width>
<height>{settings.rssOutput.imageHeight}</height>
<description>{settings.rssOutput.description}</description>
</image>
<generator>TYPO3</generator>
<docs>{settings.rssOutput.docs}</docs>
<webMaster>{settings.rssOutput.webmaster}</webMaster>
<lastBuildDate>Wed, 19 May 2010 16:42:00 +0200</lastBuildDate>
<f:for each="{extensions}" as="extension">
<item>
<title>{extension.lastVersion.title}</title>
<link><f:link.action action="show" arguments="{extension : extension}"><!-- REPLACE WITH OWN VIEW HELPER FOR URL ONLY --></f:link.action></link>
<guid><f:link.action action="download" arguments="{extension : extension, version : extension.lastVersion}"><!-- REPLACE WITH OWN VIEW HELPER FOR URL ONLY --></f:link.action></guid>
<description>{extension.lastVersion.description}</description>
<content:encoded><![CDATA[]]></content:encoded>
<pubDate>{extension.lastVersion.uploadDate} <!-- ADD VIEW HELPER FOR RSS LIKE DATE FORMAT --></pubDate>
</item>
</f:for>
</channel>
</rss>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment