plainblack.com
Username Password
search
Bookmark and Share

Google sitemap

this is a simple package to generate a google sitemap. This one is available @ yoursite/config.xml. Generated file are in 0.9 scheme like :

<url>
<loc>http://yoursite/home</loc>
<priority>1.0</priority>
<changefreq>daily</changefreq>
<lastmod>2008-03-08T08:48:28+00:00</lastmod>
</url>

you should edit sitemap_template_navigation to adjust time to your datetime zone, hope this help. The changefreq field have been set to daily, this one is optional. You should also read this

Version 3 fix the LastModified bug, so you need to install a new macro provided here called LastModifiedById. Remember that you need to modify Webgui.conf to Allow this macro and restart the modperl server.

Comments
4koen: "
Perhaps a link to google might be in place here.

I have downloaded and put this package into my WebGUI site.

What is the page_layout called google_sitemap_layout used for? 

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization
"
4eskan: "
thanks for reply,

this layout isn't used so i remove it. I also addlink like you suggested.
"
4koen: "
Perhaps it might also be a good idea to tune the how often does your page change a bit.

Daily might look good, but I wouldn't  be surprized if google would give a penalty for not actually changing that page daily.

Koen de Jonge - ProcoliX
http://www.procolix.com
Hosting - WebGUI - Virtualization
"
3lrobinson: "
Does the LastModified macro call do what you wanted here?

As far as I can see, it gives the date the sitemap navigation asset was created, not the modification date of the asset described inside the <loc> tags.

 
"
3sge: "Having the same problem with the LastModified macro"
0eskan: "Bug with LastModified macro was fixed.
About priority and change freq, this will need to add field to Asset. An idea was to set priority with Asset depth, let me know."
Downloadgoogle_sitemap_3.wgpkg google_sitemap_3.wgpkg
google_sitemap_2.wgpkg google_sitemap_2.wgpkg
LastModifiedById.pm LastModifiedById.pm
LinksNo Support Offered
Statistics Downloads: 863
Views: 2755
Rating: 4
Updated: 5/21/2009
Keywords packages google sitemap
NavigationBack to the Bazaar
© 2018 Plain Black Corporation | All Rights Reserved