UmbracoSiteMapProvider web.config setting in version 4.0.2.1
In an attempt to speed up the publishing routines, I set the 'sitemap' setting in the web.cofig to 'false' as I have no need for sitemaps. The application then throws an error since it is expecting to find a sitemap type in method call umbraco.content.PublishNodeDo(....)
Wrapping the problem code block fixes the error, but it would be nice to have the core code read the web.config setting rather than
swalling the exception (maybe it's been done in a later version?)
try { if (SiteMap.Provider is presentation.nodeFactory.UmbracoSiteMapProvider) { presentation.nodeFactory.UmbracoSiteMapProvider prov = (presentation.nodeFactory.UmbracoSiteMapProvider)SiteMap.Provider; prov.UpdateNode(new umbraco.presentation.nodeFactory.Node(d.Id)); } } catch (InvalidOperationException) { }
UmbracoSiteMapProvider web.config setting in version 4.0.2.1
In an attempt to speed up the publishing routines, I set the 'sitemap' setting in the web.cofig to 'false' as I have no need for sitemaps. The application then throws an error since it is expecting to find a sitemap type in method call umbraco.content.PublishNodeDo(....)
Wrapping the problem code block fixes the error, but it would be nice to have the core code read the web.config setting rather than
swalling the exception (maybe it's been done in a later version?)
try
{
if (SiteMap.Provider is presentation.nodeFactory.UmbracoSiteMapProvider)
{
presentation.nodeFactory.UmbracoSiteMapProvider prov = (presentation.nodeFactory.UmbracoSiteMapProvider)SiteMap.Provider;
prov.UpdateNode(new umbraco.presentation.nodeFactory.Node(d.Id));
}
}
catch (InvalidOperationException) { }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.