CMS MADE SIMPLE FORGE

SiteMapMadeSimple

 

[#2852] Sitemap uses older schema .84

avatar
Created By: John Beatrice (mww)
Date Submitted: Fri Jan 09 14:21:58 -0500 2009

Assigned To:
Version: v1.1
CMSMS Version: None
Severity: Minor
Resolution: None
State: Open
Summary:
Sitemap uses older schema .84
Detailed Description:
Sitemaps only need the following urlset as per the site map protocol at
http://www.sitemaps.org/protocol.php

Use this:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

Instead of this:
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
	http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">




History

Comments
avatar
Date: 2010-11-23 07:55
Posted By: Carsten Wiedmann (wiedmann)

also the current template (v1.2.2) does not generate a valid xml for the 0.9
scheme.

Patch:
=====
---
Downloads/SiteMapMadeSimple-1.2.2/SiteMapMadeSimple/templates/orig_xml_template.tpl
+++
public_html/cmsmadesimple-dev/modules/SiteMapMadeSimple/templates/orig_xml_template.tpl
@@ -1,16 +1,16 @@
 {* sitemap template *}
 <?xml version="1.0" encoding="UTF-8"?>
-<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
-	http://www.google.com/schemas/sitemap/0.84/sitemap.xsd">
+	xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
+	http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 
 {foreach from=$output item='page'}
 <url>
   <loc>{$page->url}</loc>
   <lastmod>{$page->date|date_format:"%Y-%m-%d"}</lastmod>
+  <changefreq>{$page->frequency}</changefreq>
   <priority>{$page->priority}</priority>
-  <changefreq>{$page->frequency}</changefreq>
 </url>
 {/foreach}