silverstripe-googlesitemaps/templates/GoogleSitemap.ss
Will Rossiter 929e97accf API: Remove public access to frequency and priorities.
Cleaned up related functions and general spring clean of the module. Documented example of manually setting routes through an extension class.
2012-07-06 17:07:30 +12:00

11 lines
449 B
Scheme

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<% loop $Items %>
<url>
<loc>$AbsoluteLink</loc>
<% if $LastEdited %><lastmod>$LastEdited.Format(c)</lastmod><% end_if %>
<% if $ChangeFreq %><changefreq>$ChangeFreq</changefreq><% end_if %>
<% if $Priority %><priority>$Priority</priority><% end_if %>
</url>
<% end_loop %>
</urlset>