Question

A very simple question for experienced sharepoint developers I think.

Inside a PortalSiteMapProvider I can access the RootNode this way:

 (PortalSiteMapNode) RootNode

My Question is, how can I access this node from other places, without a reference to the provider? Is there something like

 SPContext.Current.Web.RootNode (just an example, this doesnt work)

Thank you very much!

Was it helpful?

Solution

I'm not quite clear on what you are trying to achieve, however, you cannot access any nodes of a site map provider without referencing that provider. A simple reason for this is that the sitemap may have a totally different structure to that of your SharePoint site collection.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top