[WM] sitemap grep attribute
alex canady
acanady.yahoo.com
Fri Jan 19 23:22:46 GMT 2001
its me again ... this time i looked through the
archives and don't think it's addressed anywhere.
i am working with the sitemap thingy and seem to have
it working in its default behavior, i.e.:
Section 1
Section 1 Subsection 1
Section 1 Subsection 2
Section 2
Section 2 Subsection 1
Section 2 Subsection 2
however what i really want is to only render the site
map for the top level nodes and then the parent nodes
of the current page, so if we were on subsection 1 of
section 1:
Section 1
Section 1 Subsection 1
Section 2
i think this may be possible with the grep attribute
of the sitemap function, however i can't find any
examples of it anywhere and the documentation only has
a little blurb about it.
what i can't figure out is where the $_ is in
relationship to the overall processing of the sitemap
rendering code - confusing i know. i need to know
what i can compare $_ (the current content name) to ??
if the node is for the current content ($_) then draw
it.
if the node is a parent for the current content then
draw the node.
if the node is a top level node then draw the node.
but all i have to work with is $_ (the content name,
not the node).
is this the right logic or am i just going down the
wrong path?
regards,
alex
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
More information about the Webmake-talk
mailing list