ASPX templates
Version 4.x > ASPX templates > Google Sitemap View modes: 
User avatar
Member
Member
Nicola - 1/28/2010 6:34:20 PM
   
Google Sitemap
I'm wanting to use the Google Sitemap feature but when I browse to the page http://localhost/CMSPages/googlesitemap.aspx - all I see is one line.

<urlset xsi:schemalocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
</urlset>

I've checked the event log but nothing logged. Is there another step to populate this? I'm using v4.1.

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/1/2010 5:56:59 AM
   
RE:Google Sitemap
Hi,

Have you set the google site map file in the settings of the CMS as described in this knowledge base article? I hope it will help.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
Nicola - 2/1/2010 2:47:52 PM
   
RE:Google Sitemap
Yes I have followed through that knowledge base article, but shouldn't I still be able to view the sitemap by going directly to the aspx page - http://localhost/CMSPages/googlesitemap.aspx?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/4/2010 7:25:57 AM
   
RE:Google Sitemap
Hi Nicola,

Could you please try to change 'order by' expression in ~\CMSPages\GoogleSiteMap.aspx file from:

OrderBy="NodeAliasPath"

to:

OrderBy="NodeLevel, NodeOrder, NodeName"

If this won't help could you please make sure your documents are of type 'CMS.MenuItem' and that they are set to be displayed in site map in Properties section of document?

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Nicola - 2/4/2010 1:06:34 PM
   
RE:Google Sitemap
Hi,

Thanks for that, our documents are not CMS.MenuItem type which explains why nothing is showing. Is the doc type configurable?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/9/2010 2:32:02 AM
   
RE:Google Sitemap
Hi Nicola,

You can add ClassNames attribute for GoogleSitemap control in ~\CMSPages\GoogleSiteMap.aspx template. Please find sample definition of this attribute bellow:

ClassNames="CMS.MenuItem;CMS.News;CMS.Article"

Best Regards,

Martin Dobsicek

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 2/10/2010 10:05:00 AM
   
RE:Google Sitemap
I have a similar problem. The site map only lists one random item.
I changed the path property to Path="/Products/%" and it correctly listed all my product menu pages. However change it to Path="/%" and it goes back to the single line random item again.

Any ideas.

Nick

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 2/17/2010 5:34:38 AM
   
RE:Google Sitemap
Hi Nick,

Could you please confirm you have changed 'order by' expression in ~\CMSPages\GoogleSiteMap.aspx file from:

OrderBy="NodeAliasPath"

to:

OrderBy="NodeLevel, NodeOrder, NodeName"

Best Regards,

Martin Dobsicek

User avatar
Certified Developer v7
Certified  Developer v7
slycknick - 2/17/2010 5:50:48 AM
   
RE:Google Sitemap
I had not but if I do I get the same result.
I have corrected the problem by setting the single page output by the sitemap to be 'not included in the sitemap'.
After I did this all pages are successfully generated.
A little weird but at least it works now.

Thanks for your help.
Nick