silverstripe-framework/templates/RSSFeed.ss

21 lines
586 B
Scheme
Raw Normal View History

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>$Title.XML</title>
<link>$Link</link>
<description>$Description.XML</description>
<% 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>