Closed (fixed)
Project:
XML sitemap
Version:
6.x-2.0-unstable5
Component:
xmlsitemap.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
27 Nov 2009 at 19:20 UTC
Updated:
13 Dec 2009 at 02:50 UTC
I'd like to have a dynamic sitemap link. I tried token to start off with thinking I could have a custom url and then use a token to change it. But xmlsitemap custom doesn't understand tokens it seems.
So next I tried insert in my site custom bits and bobs module
function mymodule_xmlsitemap_links() {
$links = array();
$links[] = array(
'type' => 'mytype',
'id' => 1,
'loc' => 'pathtopage',
'lastmod' => 346245692,
'changefreq' => 4600,
);
return $links;
}
Why doesn't that work? It says here http://drupalcontrib.org/api/function/hook_xmlsitemap_links/6 that is waht to do, I think.
Comments
Comment #1
malc_b commentedI think I have it sorted. It also needs mymodule_xmlsitemap_links_clear() and mymodule_xmlsitemap_links_batch_info() in order for it to work.
Comment #2
dave reidOnly need to implement hook_xmlsitemap_links_clear().
Comment #3
malc_b commentedThanks
Comment #4
dave reid