Using the PageSiteMapProvider class

Vote:
 
Has anyone used the PageSiteMapProvider class? I get correct node names from it, but I can't seem to bind it to a ASP.NET SiteMapPath control? I keep getting an error stating: System.ArgumentNullException: Paramater has no page set Parameter name: pageLink Any ideas?
#15733
Mar 25, 2008 19:07
Vote:
 
Hi Ted! Have you specified a start page for the sitemapprovider? Is this error part och a stack trace or something else?
#16246
Mar 25, 2008 19:08
Vote:
 
Hi! I haven't explicitly set a start page for the PageSiteMapProvider object, the only properties that seem relevant are read-only? What I've done so far is to declare a new PageSiteMapProvider object and then assign it to a SiteMapPath object's Provider property. Thanks for your help!
#16247
Mar 25, 2008 19:08
Vote:
 
Hi I have corrected a bug in PageSiteMapProvider which probably caused the error you seen. Also now when using Property webcontrol inside templates in SiteMapPath control they will fetch data from the correct page (that is the current item in the templated control and not the currently loaded page). The fix will be included in RC4.
#16248
Mar 25, 2008 19:08
Vote:
 
Sounds good to me! Looking forward to RC4! :)
#16249
Mar 25, 2008 19:08
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.