who to build google sitemaps ?

Author Message

Alexandre Cunha

Friday 20 October 2006 10:30:32 am

Hi,

Unfortunetly the http://ez.no/community/contribs/template_plugins/googlesitemaps_extension is not working as expected (despite some corrections that I made).

So, I am in the situation to look for a solution to create google sitemaps. I prefer a php web script that genarates the sitemap every time I run it. And ezpublish friendlly.

Any sugestions ?

http://AlexandreCunha.com

Mark Marsiglio

Friday 20 October 2006 11:31:50 am

What is the problem you are running in to with the extension? We implemented that successfully, and it seems to be working very well for us. We had to make a few settings changes to get the update frequency right, but it is good now.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Alexandre Cunha

Friday 20 October 2006 3:15:36 pm

Hi,

The problems are described here: http://ez.no/community/contribs/template_plugins/googlesitemaps_extension
See my last 2 posts (20/october)

http://AlexandreCunha.com

Mark Marsiglio

Saturday 21 October 2006 7:37:50 am

I encountered the same problem actually, now that I go back and look at my code.

I made two adjustments to fix it:

In line 3 of design/standard/templates/node/view/googlesitemaps.tpl

{let $siteurl = 'www.sitename.com' )}

This change to hard code the site URL removed the double http://.

In line 13 of design/standard/templates/node/view/googlesitemaps.tpl

    <loc>{concat('http://',$siteurl,$node.url_alias|ezroot(no))|extlinkfix(del_layout)}</loc>

This change (from ezurl to ezroot) removed the siteaccess name and index.php from the URL on our installation, which uses URL siteaccesses instead of host name.

It looks like your solution would work too though.

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Alexandre Cunha

Sunday 22 October 2006 2:25:15 am

thanks Mark

Your solution changing line 13 is better than my posted workarround changing sitemap.php.
You solved the problem where the problem it is.

thank you.

http://AlexandreCunha.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:43:29
Script start
Timing: Jan 18 2025 11:43:29
Module start 'layout'
Timing: Jan 18 2025 11:43:29
Module start 'content'
Timing: Jan 18 2025 11:43:29
Module end 'content'
Timing: Jan 18 2025 11:43:29
Script end

Main resources:

Total runtime0.0198 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9063152.6250
Module start 'layout' 0.00690.0040 740.531339.4453
Module start 'content' 0.01090.0064 779.976693.4141
Module end 'content' 0.01740.0024 873.390634.3047
Script end 0.0198  907.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003216.0356140.0002
Check MTime0.00126.1782140.0001
Mysql Total
Database connection0.00094.541510.0009
Mysqli_queries0.003215.941730.0011
Looping result0.00000.101210.0000
Template Total0.00199.610.0019
Template load0.00105.001610.0010
Template processing0.00094.556010.0009
Override
Cache load0.00073.580510.0007
General
dbfile0.00031.511480.0000
String conversion0.00000.061440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs