silverstripe-framework/templates/RSSFeed.ss
Andrew O'Neil 4b9ed4ec6f Fix title and description in RSS feeds
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@47681 467b73ca-7a2a-4603-9d3b-597d59a354a9
2008-01-07 19:17:21 +00:00

22 lines
615 B
Scheme
Executable File

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>$Title</title>
<link>$Link</link>
<% if Description %><description>$Description.XML</description><% end_if %>
<% control Entries %>
<item>
<title>$Title.XML</title>
<link>$AbsoluteLink</link>
<% if Description %><description>$Description.AbsoluteLinks.EscapeXML</description><% end_if %>
<% if Date %><pubDate>$Date.Rfc822</pubDate>
<% else %><pubDate>$Created.Rfc822</pubDate><% end_if %>
<% if Author %><author>$Author.XML</author><% end_if %>
<guid>$AbsoluteLink</guid>
</item>
<% end_control %>
</channel>
</rss>