quote:
SiteMapPath Class
This is how I use that class. I put code like this on my Master page (but doesnt' have to be if you're not using one):
<asp:SiteMapPath ID="smpNavigation" runat="server"
PathDirection="RootToCurrent"
SiteMapProvider="Members"
RenderCurrentNodeAsLink="true"
PathSeparator=" :: "
ShowToolTips="false"
SkinID="smpDefault" />
and I use a Members.sitemap file (match the name to the "SiteMapProvider" that looks similar to this:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<siteMapNode url="~/Members/Welcome.aspx" title="Welcome" roles="User">
<siteMapNode url="~/Members/Home.aspx" title="Home" roles="User" />
<siteMapNode url="~/Members/MyAccount.aspx" roles="User" title="My Account">
<siteMapNode url="~/Members/ChangeDetails.aspx" roles="User" title="Change Details" />
<siteMapNode url="~/Members/ChangePassword.aspx" title="Change Password" roles="User" />
</siteMapNode>
</siteMapNode>
</siteMap>
Those are examples from one of my sites so I'm confident that's pretty durn close. Is that what you were looking for? Something like that to work with that class?
This particular example is using a static XML file (the .sitemap file) that'll need to be edited by hand based on the navigational structure of your site. Altho I frequently use a static file, I have used things like database results to act as the SiteMapProvider so it can vary with your environment.
Hope it helps.