Closed (works as designed)
Project:
Google Sitemap
Version:
5.x-1.10
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2007 at 17:10 UTC
Updated:
9 Oct 2007 at 19:32 UTC
If this the new format expected from a module implemented hook_gsitemap?
function mybox_gsitemap() {
...
$entries = array();
foreach ($hits as $hit) {
$entry = array();
$entry['#loc'] = "http://www.../mybox/" . $hit->messageid; // url
$entry['#lastmod'] = strtotime($date); // unix seconds
$entry['#changefreq'] = "30000000"; // seconds
$entry['#priority'] = 0.6;
$entries[] = $entry;
}
return $entries;
}
I was using an xml style date string and the text changefreq like 'yearly' and they stopped working at some point.
Comments
Comment #1
darren ohThat's correct. You can also submit a complete site to be parsed and included. Complete documentation is in docs/gsitemap.php.