Want recursive SQL query function to generate breadcrumb navigation to top level

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Want recursive SQL query function to generate breadcrumb navigation to top level

    I'd want to make a custom class that will generate breadcrumb navigation for
    my site via a recursive query, e.g. Home > Page1 > Subpage 1. I've
    structured my database with hierarchical parent/child relationships. Can
    someone help me set up the code structure?

    I'm using ASP VBScript, and I have a table structure similar to the
    following:

    NavItems
    ----------
    NavitemID (PK)
    Nav_ParentID
    Nav_Name

    The top level record in the entire table is "1", but it would be nice if I
    could parameterize the function so that I could specify the ID of the
    current page and the ID of the topmost ID I want to trace to, e.g.

    GetTrailOfBreadcrumbs(CurrentNavitemID, TopmostNavitemID)

    The least expensive approach from the standpoint of the database would be
    something that used something besides ADO recordsets to grab the data. If
    someone has some code lying around or can offer some guidance, I'd sure
    appreciate it.

    Thanks.

    -KF


    Ken Fine Guest

  2. Similar Questions and Discussions

    1. #40715 [NEW]: level too deep - recursive dependency? in Unknown on line 0
      From: shoichi at cf7 dot so-net dot ne dot jp Operating system: CentOS4.4 PHP version: 5.2.1 PHP Bug Type: Scripting Engine...
    2. Breadcrumb navigation script in PHP
      Hi I've just spent about 4 hours looking in vain for a PHP based breadcrumb navigation script. There are loads available but they all seem to...
    3. Recursive Query / Breadcrumb
      I'm about to go nuts here! I'm trying to build a dynamic breadcrumb (not a file level breadcrumb) using all different kinds of means and just can't...
    4. Breadcrumb Navigation in Flash
      Does anybody know how I can have a single Flash file (a navigation bar) highlight the section you're in once you click on a piece of the navigation?...
    5. #24746 [Bgs]: Fatal error: Nesting level too deep - recursive dependency?
      ID: 24746 User updated by: tim at sparkart dot com Reported By: tim at sparkart dot com Status: Bogus Bug Type: ...
  3. #2

    Default Re: Want recursive SQL query function to generate breadcrumb navigation to top level

    On Tue, 29 Mar 2005 16:53:07 -0800, Ken Fine <kenfine@u.washington.edu>
    wrote:
    > I'd want to make a custom class that will generate breadcrumb navigation
    > for
    > my site via a recursive query, e.g. Home > Page1 > Subpage 1. I've
    > structured my database with hierarchical parent/child relationships. Can
    > someone help me set up the code structure?
    >
    > I'm using ASP VBScript, and I have a table structure similar to the
    > following:
    >
    > NavItems
    > ----------
    > NavitemID (PK)
    > Nav_ParentID
    > Nav_Name
    >
    > The top level record in the entire table is "1", but it would be nice if
    > I
    > could parameterize the function so that I could specify the ID of the
    > current page and the ID of the topmost ID I want to trace to, e.g.
    >
    > GetTrailOfBreadcrumbs(CurrentNavitemID, TopmostNavitemID)
    >
    > The least expensive approach from the standpoint of the database would be
    > something that used something besides ADO recordsets to grab the data. If
    > someone has some code lying around or can offer some guidance, I'd sure
    > appreciate it.
    >
    > Thanks.
    >
    > -KF
    >
    >
    We have an extension called MX Breadcrumbs which might help you solve your
    issues, plus is free :D
    [url]http://www.interaktonline.com/Products/Free-Products/MXBreadcrumbs/Overview/[/url]


    --
    Alexandro Colorado
    ------------------------------
    Support Engineer
    InterAKT Online
    [url]http://www.interaktonline.com[/url]
    Tel: 40(21) 312.5312
    Alexandro Colorado Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139