Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > How to create a custom sitemap.xml? View modes: 
User avatar
Member
Member
Leandro Brito - 1/24/2012 5:12:13 PM
   
How to create a custom sitemap.xml?
Hi,

I need create a custom xml file for sitemap separated by categories. Each category of news must has a sitemap with the news and the index sitemap must has nodes with links for each category. I have three sub-domain sites using kentico and need do this for each sub-domain (site).
By example:

sitemap_index.xml (root of sub-domain)
<url>www.domain.com/sitemap_buy.xml</url>

sitemap_buy.xml
<url>www.domain.com/mynews.aspx</url>
<url>www.domain.com/mynews2.aspx</url>

It'd been a example only, my difficult is generate the xml file in my root domain.

Is this possible?
Regards,

Leandro Brito

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/25/2012 2:50:11 AM
   
RE:How to create a custom sitemap.xml?
Hi,

Do you mean just site map or Google site map?

For the first option you can use the site map web part - it will generate a site map menu for given section of the web site (according to the web part properties). Or, you can use a repeater web part, set it up for given location/category and the transformation output will be in XML format or whatever you like.

For Google site map, please see this documentation whether it will fit your need or not. If not, you can again user repeater web parts in given locations (e.g. you will have a sitemap document for each location) of your site to generate the output you need (in fact, the default Google site map is using repeater as well).

Best regards,
Juraj Ondrus

User avatar
Member
Member
Leandro Brito - 1/25/2012 10:46:59 AM
   
RE:How to create a custom sitemap.xml?
Hi,

It would be a sitemap for partners and .
So basically should I create a xml file programmatically using repeater and transformations, chose empty template, configure my IIS and set the url extension for .xml?
May I need change something related to header or response for when the user visit the url the xml appear instead come with download page?


Thanks

User avatar
Member
Member
Leandro Brito - 1/25/2012 11:33:19 AM
   
RE:How to create a custom sitemap.xml?
I'm having this same problem with robots.txt. When I upload it to root of site, the response of url return the download file.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/26/2012 1:02:55 AM
   
RE:How to create a custom sitemap.xml?
Hi,

This might be an IIS related setting - however I am not IIS expert so I did some Google search and it has something to do with the mime types set for it. However, it also depends on the client browser settings - whether the file is opened, downloaded automatically or asked to be downloaded.

Best regards,
Juraj Ondrus