I have a (Publishing)Site Collection which have many sites and subsites. To meet a specific business requirement, I need the navigation settings of a site which is not in current context (It may be another subsite). We can use PortalSiteMapProvider to get the current navigation settings of a site as:
PortalSiteMapProvider provider=PortalSiteMapProvider.CurrentNavSiteMapProvider;
This gives reference to PortalSiteMapProvider of a site in current context. However, I need it for a site which is not in current context. Any ideas?
PortalSiteMapProvider has a property named CurrentWeb which can be set to a SPWeb object. I am not sure if we can use this property.