+ Reply to Thread
Results 1 to 5 of 5

Thread: Breadcrumb / Footprint Example

  1. #1
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Breadcrumb / Footprint Example

    I'm trying to come up with a breadcrumb type system in ASP.Net to make it easier for users to navigate.

    I've found an example online that uses a session to store each new page element as it's clicked on, but this relies on users following a route through the site ie from Home Page clicking a link to Clients, then clicking a link to View Client etc.

    I also want to allow for them typing a URL or clicking on a cached link in the address bar.

    So, my thinking is to possibly use an XML file that stores the hierarchy of pages. Something like:-
    Code:
    <document page="index.aspx" text="Home Page">
        <document page="clients.aspx" text="Clients">
              <document page="client_view.aspx" text="Client Details>
                    <document page="client_view_additional.aspx" text="Additional Details"></document>
                    <document page="policies.aspx" text="Policies>
                          <document page="policy_view.aspx" text="View Policy"></document>
                    </document>
              </document>
        </document>
    </document>
    
    So, if a user navigated straight to client_view.aspx then the site would know the hierarchy for the breadcrumb.

    I haven't done a huge amount of work with XML before, so, firstly, would this concept work? How would you do a search in an XML file for the respective page to then find the hierarchy?

    And secondly, would it be possible to add querystrings onto the end of the page variable when building the breadcrumb link. For example the actual link back to a client would be client_view.aspx?ref=1, so could I get the page detail from the XML file and then append the ref detail on the end?

    Or does anyone know of a better way to build this type of thing?

    Thanks

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Have you tried the SiteMapPath control?
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    Quote Originally Posted by jmurrayhead View Post
    Have you tried the SiteMapPath control?
    That's a negatory good buddy.....

    Will take a look...

  4. #4
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    OK. That all seemed pretty easy.

    The only slight issue is, how would I append the querystring to the end of the URLs that I need to?

  5. #5
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO