Modify behaviour of sitemap?

Is there any way to customize the sitemap that is generated from Litium.Studio assembly? The only settings seems to be in web.config: sitemap on/off, add products on/off, cache on/off?

Or is the solution to implement acustom sitemap if more modifications are needed?

Litium version: 6.2

You can create a new class that inherit Litium.Foundation.Modules.CMS.Plugins.Sitemaps.SitemapFactory and modify the protected methods in that class to control what is added to the sitemap.

We need to exclude some products from the sitemap, but SitemapFactory seams to be Deprecated, how can we exclude (some) products from the sitemap 7.3/4 ?

1 Like

Check the Litium.Web.Sitemap.SitemapFactory instead, exists in Litium.Web.Application assembly.

Thank you, this worked, but i now noticed that the sitemap liks are all http and not https (Not related to my changes) Is this a setting we are missing? See: https://eleven.se/sitemap.axd

Hm, no idea. The pages below the sitemap contains the https prefix but not sure why the sitemap-files itself points to http.

@patric.forsgard Did you find out anything about why there is http instead of https?

There’s a bug reported about incorrect http scheme on the initial sitemap page: https://docs.litium.com/support/bugs/bug_details?id=54157

Thanks @NilsN!
Any estimate on when that will be fixed? Or any ideas on a workaround we can implement ourselves?

Right now I don’t have an estimate on when, I’m afraid. It has to be corrected in the platform.

Ok, in the meantime we’ve created a copy of the SitemapController and overridden the routing so our copy is used instead.

1 Like