Breadcrumbs Question

This post has 3 replies

Top 500 Contributor
Posts: 27
vicpal25 Posted: Wed Apr 25, 2007 @ 4:58 PM
I have the following sitemap structure with some pages in the same level:

<SiteMap>

    <node Text="Queries" NavigateUrl="javaScript:void(0);">
      <node Text="Page 1" NavigateUrl="#" />
      <node Text="Page 2" NavigateUrl="#" />
      <node Text="Page 3" NavigateUrl="#" />
      <node Text="Page 4" NavigateUrl="#" />
      <node Text="Page 5" NavigateUrl="#" />
    </node>
  
</SiteMap>
      


I made my sitemap display as breadcrumbs on my page. My question is:

1) How can I display the current page on the breadcrumb?

Example:
- If the user is on page 4 of the Queries section then breadcrumbs should dynamically display:

Queires > Page 4


Any ideas?
Top 10 Contributor
Posts: 6,424
hwan Posted: Mon Apr 30, 2007 @ 1:30 PM
I'm not sure I see how the SiteMap is supposed to know what page you have loaded?
Top 500 Contributor
Posts: 27
vicpal25 Posted: Thu May 10, 2007 @ 11:48 AM
Okay, so your saying if I place a site-map control and make it show in breacrumb format that my page wont know what bread crumb to load?
Top 10 Contributor
Posts: 6,149
stephen Posted: Mon Jun 4, 2007 @ 12:15 PM
The sitemap control determines the selected item (in your case, page 4) by comparing the url of the page to the url's of your items. You don't have urls assigned, so nothing can be determined as selected. I hope this makes sense.
Stephen Hatcher, Developer Support Manager
Page 1 of 1 (4 items)