|
| |
|
|
eebee
Posts: 2 Joined: 4/11/2008 Status: offline
|
breadcrumb nav - 4/11/2008 8:32:21
Does anyone know how to make a breadcrumb navigation at the top of each page? The help files says this: The SiteMapPath control displays a navigation path (which is also known as a breadcrumb or eyebrow) that shows the user the current page location and displays links as a path back to the home page. The control provides many options for customizing the appearance of the links. For information about programming the SiteMapPath control, see SiteMapPath Class in the MSDN library. I went to the link they give but I haven't a clue how to implement that. Is there a simple explanation or addin that can do this?
|
|
|
|
rdouglass
Posts: 9167 From: Biddeford, ME USA Status: offline
|
RE: breadcrumb nav - 4/11/2008 15:18:29
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.
_____________________________
Don't take you're eye off your final destination. ASP Checkbox Function Tutorial.
|
|
|
|
eebee
Posts: 2 Joined: 4/11/2008 Status: offline
|
RE: breadcrumb nav - 4/15/2008 4:45:46
Thanks very much Corey and rdouglas for your help. I have had a go at this but its too much for my small non technical brain. I think I will just leave my visitors to use the menu! Liz
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|