H
Harlan Messinger
I'm sure this is covered on the Web, but I can't figure out a
sufficiently narrow Google query: Suppose I have a hierarchical website
structure
Page 1
Page 1a
Page 1b
Page 1b1
Page 1b2
Page 1b3
Page 2
Page 2a
Page 2b
Page 2c
Page 3
Page 4
Page 4a
Page 4b
encapsulated in XML, where each node has an attribute called "item" and
one called "url". In a page on my web server (ASP, PHP, whatever) I have
a value that may match the item attribute belonging to one of my nodes.
This should allow me to display a navigation menu that shows only the
top-level items, except that every item that is an ancestor of the
current page or that IS the current page should be expanded. So if I'm
on page 1 or on page 1a, I should see the following items on the
navigation menu:
Page 1
Page 1a
Page 1b
Page 2
Page 3
Page 4
If I'm on page 1b or on any of its children, I should see
Page 1
Page 1a
Page 1b
Page 1b1
Page 1b2
Page 1b3
Page 2
Page 3
Page 4
If I'm on page 3 then I should only see:
Page 1
Page 2
Page 3
Page 4
One further detail: the item that matches the current page is the only
one that *shouldn't* be hyperlinked.
Can someone point me to an illustration of this?
sufficiently narrow Google query: Suppose I have a hierarchical website
structure
Page 1
Page 1a
Page 1b
Page 1b1
Page 1b2
Page 1b3
Page 2
Page 2a
Page 2b
Page 2c
Page 3
Page 4
Page 4a
Page 4b
encapsulated in XML, where each node has an attribute called "item" and
one called "url". In a page on my web server (ASP, PHP, whatever) I have
a value that may match the item attribute belonging to one of my nodes.
This should allow me to display a navigation menu that shows only the
top-level items, except that every item that is an ancestor of the
current page or that IS the current page should be expanded. So if I'm
on page 1 or on page 1a, I should see the following items on the
navigation menu:
Page 1
Page 1a
Page 1b
Page 2
Page 3
Page 4
If I'm on page 1b or on any of its children, I should see
Page 1
Page 1a
Page 1b
Page 1b1
Page 1b2
Page 1b3
Page 2
Page 3
Page 4
If I'm on page 3 then I should only see:
Page 1
Page 2
Page 3
Page 4
One further detail: the item that matches the current page is the only
one that *shouldn't* be hyperlinked.
Can someone point me to an illustration of this?