lost password?

home
•  xaraya +
•  rails
•  django
•  webdev
•  xamp
•  musings

rss
Tag this page
   

» Blogs that link here
last modified: Nov 16, 2006
(first posted: Oct 17, 2006)
(1726 Reads)
keywords: sitemaps
Permalink

Google Sitemaps

A step by step how I added Google Sitemaps to this site.

Thanks to Wyome, he created a googlesitemaps theme. It's probably obvious to anyone what then to do with it, but I'm documenting it anyway.

 

1. Download the googlesitemaps theme.

Download it from here

Put the theme into your themes/ directory.

 

2. Modify the templates.

For each articles module pubtype,

  • create the modules/articles/user-summary-XXX.xt tempate (copy existing one and rename)
  • edit the base/user-main.xt to include a <xar:module> for the pubtype, such as
    • <xar:module main="false" module="articles" ptid="9" numitems="1000" />

Note, you can also add tags for <changefreq> and <priority> for specific pubtypes (or even specific articles), such as

			    < changefreq>monthly</changefreq>
< priority>0.8</priority>
And you can add similar templates for other modules (like xarpages). [Add explanation here, once i do it myself]. 

 

3. Install the theme via Admin > Global > Themes

 

4. Tell google

Assuming you already have a webmaster tools account on google, go to My Sites and tell it your URL for the sitemaps, e.g.

http://www.vaporbase.com/index.php?module=base&theme=googlesitemap

 

REFERENCES

  • https://www.google.com/webmasters/sitemaps/docs/en/protocol.html
  • http://www.xaraya.com/index.php/release/displaynote/137.html
  • http://wyome.com/blog/Google_SiteMap
  • http://wyome.com/index.php?module=articles&func=display&ptid=7&aid=452
Note recent announcement between Google, Yahoo! and MSN to adopt this protocol as a web standard. http://www.sitemaps.org  

 

 

 


 

 

There are no comments attached to this item.

Post a new comment

How many days in a week?

Name :