Monday 03 September 2007 1:43:02 am - 4 replies
Modified on Monday 03 September 2007 1:52:58 am by Sébastien Antoniotti
Sébastien Antoniotti
Monday 03 September 2007 2:07:05 am
I've solved a part of my problem by editing the googlesitemap.tpl, but I need to found a solution for the first line who refer the sitemap url...
eZ Publish Freelance web : http://www.webaxis.fr
Monday 03 September 2007 3:01:53 am
Here is the part of the template that I've modified :
<url> <loc>http://www.sunemu.net</loc> <lastmod>{currentdate()|datetime('custom', '%Y-%m-%d')}</lastmod> <changefreq>hourly</changefreq> <priority>1</priority> </url> {else} <url> <loc>{concat('http://www.sunemu.net/index.php',$node.url_alias|ezurl(no))|extlinkfix(del_layout)}</loc> <lastmod>{$node.object.modified|datetime('custom', '%Y-%m-%d')}</lastmod> <changefreq>{$changefreq[$depth]}</changefreq> <priority>{$priority[$depth]}</priority> </url> {/if}
It's not very clean but it works fine ;)
Now I'll configure a cron who have to ping google weekly with my sitemap.xml.
Xavier Dutoit
Monday 03 September 2007 8:53:58 am
Hi,
Not a big fan of the priority based on how deep the node is.
Eg: the folder that contains your blog articles should have a lower priority than each post, shouldn't it ?
(thinking loud...)
http://www.sydesy.com
Monday 03 September 2007 9:12:23 am
Hi Xavier,
You're right, and I have added 2 arrays with the class identifier for key and the priority or the ChangeFrequence for value, so in my fetch I have the priority that I want for each classes ;)
You must be logged in to post messages in this topic!