Commit 471a92f1 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Fix RSS feeds

parent f640246e
...@@ -93,6 +93,12 @@ page.headerData.100.value = <link rel="alternate" type="application/rss+xml" tit ...@@ -93,6 +93,12 @@ page.headerData.100.value = <link rel="alternate" type="application/rss+xml" tit
link = {$plugin.tx_news.rss.channel.link} link = {$plugin.tx_news.rss.channel.link}
} }
} }
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/
}
}
} }
} }
[global] [global]
...@@ -191,6 +197,12 @@ page.headerData.101.value = <link rel="alternate" type="application/rss+xml" tit ...@@ -191,6 +197,12 @@ page.headerData.101.value = <link rel="alternate" type="application/rss+xml" tit
link = {$plugin.tx_news.rss.channel.link} link = {$plugin.tx_news.rss.channel.link}
} }
} }
view < plugin.tx_news.view
view {
templateRootPaths {
2 = EXT:t3org_layout/Resources/Private/Templates/News/
}
}
} }
} }
[global] [global]
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:n="http://typo3.org/ns/GeorgRinger/News/ViewHelpers">
<channel>
<title>{settings.list.rss.channel.title}</title>
<link>{settings.list.rss.channel.link}</link>
<description>{settings.list.rss.channel.description}</description>
<language>{settings.list.rss.channel.language}</language>
<f:if condition="{settings.list.rss.channel.copyright}">
<copyright>{settings.list.rss.channel.copyright}</copyright>
</f:if>
<pubDate>
<f:format.date format="r" date="now"/>
</pubDate>
<lastBuildDate>
<f:format.date format="r" date="now"/>
</lastBuildDate>
<f:if condition="{settings.list.rss.channel.category}">
<category>{settings.list.rss.channel.category}</category>
</f:if>
<atom:link href="{f:uri.page(pageType: 100, absolute: 1) -> f:format.htmlentities()}" rel="self"
type="application/rss+xml"/>
<generator>{settings.list.rss.channel.generator}</generator>
<f:if condition="{news}">
<f:for each="{news}" as="newsItem">
<item>
<guid isPermaLink="false">news-{newsItem.uid}</guid>
<pubDate>
<f:format.date format="r">{newsItem.datetime}</f:format.date>
</pubDate>
<title>{newsItem.pathSegment -> f:format.case(mode:'upper')}: {newsItem.title -> f:format.htmlspecialchars()}
</title>
<link>
<f:format.htmlentities>
<n:link newsItem="{newsItem}" settings="{settings}" uriOnly="1" configuration="{forceAbsoluteUrl: 1}"/>
</f:format.htmlentities>
</link>
<description>{newsItem.teaser -> f:format.stripTags() -> f:format.htmlspecialchars()}</description>
<content:encoded>
<f:format.cdata>
<f:format.html>{newsItem.bodytext}</f:format.html>
</f:format.cdata>
</content:encoded>
<f:if condition="{newsItem.categories}">
<f:for each="{newsItem.categories}" as="newsItemCategory">
<category>{newsItemCategory.title -> f:format.htmlspecialchars()}</category>
</f:for>
</f:if>
</item>
</f:for>
</f:if>
</channel>
</rss>
Supports Markdown
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