Re: Google Sitemap generation - double links

Thorsten Weber <[email protected]> Fri, 27 Jan 2012 10:44:54 +0100
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Hi Sebastian,

well, I saw that in your code example ...

but i noticed that the code listed at zms-publishing does not render declarative urls out of the box.
that´s why I marked that here.

when calling the getHref2IndexHtml(REQUEST) from the zms-backend the parameter preview is set to 'preview' by default
this way object paths will be generated with internal ids (e).

But this might (!) not be wanted in systems publishing with declarative urls
and as the sitemap.xml is a feed for google search index urls won't be 'nice' in search results
furthermore this might be regarded as double content by google which might lead to lower ranking.

to avoid that just set preview empty in REQUEST => this way getHref2IndexHTML(REQUEST) will generate decl. urls like at frontend.


kind regards,  
Thorsten Weber

				thorsten weber
				software development

				pro in space gmbh
				spichernstrasse 34a
				50672 köln

				[email protected]
				http://www.proinspace.com

				T: 0049 221.29 21 79.26
				F: 0049 221.29 21 79.94

				managing directors:
				uli wilkes
				jürgen brandt
				oliver blaum

				amtsgericht köln
				hrb 33 444
				ust-idnr DE209049800

Am 27.01.2012 um 10:22 schrieb Sebastian Tänzer:

> Could you explain that preview flag a bit more?
> 
> filteredtreenodes generated declarative urls just fine here without this.
> 
> best, sebastian
> 
> 
> Am 26.01.2012 um 17:17 schrieb Thorsten Weber:
> 
>>  
>> Hi Sebastian,
>> 
>> 
>> i noticed that too ...
>> i think this comes from empty folders which have only subfolders but no content (?)
>> 
>> and if you like to have declarative urls don't forget to unset preview in REQUEST
>> like:
>> <dtml-call "REQUEST.set('preview','')">
>> 
>> 
>> kind regards,  
>> Thorsten Weber
>> 
>> 				thorsten weber
>> 				software development
>> 
>> 				pro in space gmbh
>> 				spichernstrasse 34a
>> 				50672 köln
>> 
>> 				[email protected]
>> 				http://www.proinspace.com
>> 
>> 				T: 0049 221.29 21 79.26
>> 				F: 0049 221.29 21 79.94
>> 
>> 				managing directors:
>> 				uli wilkes
>> 				jürgen brandt
>> 				oliver blaum
>> 
>> 				amtsgericht köln
>> 				hrb 33 444
>> 				ust-idnr DE209049800
>> 
>> Am 26.01.2012 um 17:07 schrieb Sebastian Tänzer:
>> 
>>>  
>>> Hello fellow ZMs users,
>>> 
>>> I'm generating a Google sitemap using the code from http://www.zms-publishing.com/dokumentation/howto/import_export_xml/google_sitemaps/index_ger.html. 
>>> This works fine until I noticed that some folders are in there twice:
>>> 
>>> <url>
>>> <loc>/index_ger.html</loc>
>>> <lastmod>2012-01-26</lastmod>
>>> <changefreq>daily</changefreq>
>>> <priority>0.5</priority>
>>> </url>
>>> <url>
>>> <loc>/klinik/willkommen/index_ger.html</loc>
>>> <lastmod>2011-03-09</lastmod>
>>> <changefreq>daily</changefreq>
>>> <priority>0.5</priority>
>>> </url>
>>> <url>
>>> <loc>/klinik/willkommen/index_ger.html</loc>
>>> <lastmod>2011-07-28</lastmod>
>>> <changefreq>daily</changefreq>
>>> <priority>0.5</priority>
>>> </url>
>>> <url>
>>> <loc>/klinik/klinikdirektion/index_ger.html</loc>
>>> <lastmod>2011-07-28</lastmod>
>>> <changefreq>daily</changefreq>
>>> <priority>0.5</priority>
>>> </url>
>>> 
>>> Any ideas how this could happen?
>>> 
>>> Best, Sebastian Tänzer
>>> 
>>> -
>>> tänzermedien GmbH - Agentur für Online-Medien
>>> Kekuléstr. 39 | 53115 Bonn, Germany
>>> E-Mail: [email protected] | Web: http://www.taenzer.me 
>>> Tel.: 0228-304134-0 | Fax.: 0228-304134-99
>>> 
>> 
>> 
> 
> 
>