mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT Fixed invalid RSSFeed format - added <atom:link> and <dc:creator> elements, removed <author> element (invalid unless it contains an email address)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@72229 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
7ead4294b1
commit
9e32f24279
@ -1,9 +1,10 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<rss version="2.0">
|
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||||
<channel>
|
<channel>
|
||||||
<title>$Title</title>
|
<title>$Title</title>
|
||||||
<link>$Link</link>
|
<link>$Link</link>
|
||||||
<% if Description %><description>$Description.XML</description><% end_if %>
|
<atom:link href="$Link" rel="self" type="application/rss+xml" />
|
||||||
|
<description>$Description.XML</description>
|
||||||
|
|
||||||
<% control Entries %>
|
<% control Entries %>
|
||||||
<item>
|
<item>
|
||||||
@ -12,7 +13,7 @@
|
|||||||
<% if Description %><description>$Description.AbsoluteLinks.EscapeXML</description><% end_if %>
|
<% if Description %><description>$Description.AbsoluteLinks.EscapeXML</description><% end_if %>
|
||||||
<% if Date %><pubDate>$Date.Rfc822</pubDate>
|
<% if Date %><pubDate>$Date.Rfc822</pubDate>
|
||||||
<% else %><pubDate>$Created.Rfc822</pubDate><% end_if %>
|
<% else %><pubDate>$Created.Rfc822</pubDate><% end_if %>
|
||||||
<% if Author %><author>$Author.XML</author><% end_if %>
|
<% if Author %><dc:creator>$Author.XML</dc:creator><% end_if %>
|
||||||
<guid>$AbsoluteLink</guid>
|
<guid>$AbsoluteLink</guid>
|
||||||
</item>
|
</item>
|
||||||
<% end_control %>
|
<% end_control %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user