Forums / Setup & design / Problem with the GoogleSiteMaps Extension

Problem with the GoogleSiteMaps Extension

Author Message

Sébastien Antoniotti

Monday 03 September 2007 1:43:02 am

Hi,

I have a problem with the GoogleSiteMaps Extension : I have copied the extension folder into /extension, activated it, and copied googlesitemaps.ini.append.php into the settings/siteaccess/(mypublicsiteaccess)/ folder.

Here is my googlesitemaps.ini.append.php :

#?ini charset="iso-8859-1"?

[Classes]

#set include to include objects of classes listed in Class_Filter_Array
#set exclude to exclude objects of classes listed in Class_Filter_Array
Class_Filter_Type=include

#setting array to include/exclude classes in sitemap
Class_Filter_Array[]
Class_Filter_Array[]=folder
Class_Filter_Array[]=artiste
Class_Filter_Array[]=album
Class_Filter_Array[]=chanson
Class_Filter_Array[]=actu
Class_Filter_Array[]=guitar_pro
Class_Filter_Array[]=tablature
Class_Filter_Array[]=article

[NodeSettings]
#set false to include only main node of content object in sitemap
#set true to include all nodse of content object in sitemap
Main_Node_Only=false

#<changefreq> based on depth of node
Node_Depth_ChangeFreq[]
Node_Depth_ChangeFreq[]=always
Node_Depth_ChangeFreq[]=hourly
Node_Depth_ChangeFreq[]=daily
Node_Depth_ChangeFreq[]=weekly
Node_Depth_ChangeFreq[]=monthly
Node_Depth_ChangeFreq[]=yearly
Node_Depth_ChangeFreq[]=never

#<priority> based on depth of node
Node_Depth_Priority[]
Node_Depth_Priority[]=1
Node_Depth_Priority[]=0.9
Node_Depth_Priority[]=0.8
Node_Depth_Priority[]=0.7
Node_Depth_Priority[]=0.6
Node_Depth_Priority[]=0.5
Node_Depth_Priority[]=0.4

So the sitemap is not correctly build when accessing the url : http://www.sunemu.net/index.php/fr/layout/set/googlesitemap/content/view/googlesitemaps/2 there is just a line...

I'am using a 3.8.6 version.

Thanks for your help !

eZ Publish Freelance
web : http://www.webaxis.fr

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

Sébastien Antoniotti

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.

eZ Publish Freelance
web : http://www.webaxis.fr

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

Sébastien Antoniotti

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 ;)

eZ Publish Freelance
web : http://www.webaxis.fr

eZ debug

Timing: Jan 20 2025 03:11:41
Script start
Timing: Jan 20 2025 03:11:41
Module start 'content'
Timing: Jan 20 2025 03:11:42
Module end 'content'
Timing: Jan 20 2025 03:11:42
Script end

Main resources:

Total runtime1.2237 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.0859180.8125
Module start 'content' 0.00801.0809 769.8984577.3672
Module end 'content' 1.08890.1347 1,347.2656341.3672
Script end 1.2236  1,688.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3588210.0002
Check MTime0.00160.1289210.0001
Mysql Total
Database connection0.00090.077510.0009
Mysqli_queries1.132892.57222000.0057
Looping result0.00190.15571980.0000
Template Total1.188697.120.5943
Template load0.00220.177920.0011
Template processing1.186496.956120.5932
Template load and register function0.00020.018310.0002
states
state_id_array0.00140.111510.0014
state_identifier_array0.00170.137620.0008
Override
Cache load0.00180.1512300.0001
Sytem overhead
Fetch class attribute can translate value0.00190.158230.0006
Fetch class attribute name0.00130.105970.0002
XML
Image XML parsing0.00350.284630.0012
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.01110.9062330.0003
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs