Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-07 17:52:06

tdn
Member
Registered: 2006-02-16
Posts: 58

How do I generate a sitemap

Hi

I would like to generate a sitemap using Google’s Sitemap Protocol1. I think it should be possible to generate a page template/form in Textpattern that will generate the XML for such a sitemap. Here is a sample of the XML of such a sitemap:

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">

   <url>
      <loc>http://www.example.com/</loc>
      <lastmod>2005-01-01</lastmod>
      <changefreq>monthly</changefreq>
      <priority>0.8</priority>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=12&amp;desc=vacation_hawaii</loc>
      <changefreq>weekly</changefreq>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=73&amp;desc=vacation_new_zealand</loc>
      <lastmod>2004-12-23</lastmod>
      <changefreq>weekly</changefreq>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=74&amp;desc=vacation_newfoundland</loc>
      <lastmod>2004-12-23T18:00:15+00:00</lastmod>
      <priority>0.3</priority>
   </url>
   <url>
      <loc>http://www.example.com/catalog?item=83&amp;desc=vacation_usa</loc>
      <lastmod>2004-11-23</lastmod>
   </url>
</urlset>




[1]: https://www.google.com/webmasters/tools/docs/en/protocol.html

Last edited by tdn (2006-12-07 17:53:56)

Offline

#2 2006-12-07 18:15:50

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: How do I generate a sitemap

look here

Last edited by sthmtc (2006-12-07 18:16:09)

Offline

Board footer

Powered by FluxBB