|Number of votes:||0|
I have created a add-on that adds a site map index to a EPiServer site based on the page tree structure. I have used the protocol that is described here http://www.sitemaps.org/protocol.html#index
The implementation is based on a http handler that must be registered in web.config, would be great if the registration could be done through code, maybe in a initialization module, is this possible?
Add a reference to the SiteMapIndex.dll and add following to Web.config ( /configuration/system.webServer/handlers)
Browse to http://yoursite.com/sitemap.xml to view the site map index.
It is possible to change the behavior of these things. Implement the interface ISiteMapIndexPageType to your page type builder page type class and implement the properties from the interface.
It could be a quite heavy operation to render the site map index for big site. Now only page references are cached in addition to episerver standard caching of page data objects. A cache dependency is added to the global episerver version key. If a page is updated the entire cache (of page references) for the site map index is dropped. Do you think the outputted xml should be cached instead of the page references or maybe something completely different?
Source and downloads are available at github. https://github.com/antonkallenberg/SiteMapIndex
Requires PageTypeBuilder 2.0 and EPiServer 6 R2.