[ic] BreadCrumb Trail - Interpolate.pm Code, Tree Code

Dog Tags interchange-users@icdevgroup.org
Mon Jun 17 16:04:00 2002


Hi All

I'd like to use some sort of Breadcrumb trail like:

You Are Here:  Tools > Hammers > Claw

I've found some threads like the following:

http://interchange.redhat.com/bugs/show_bug.cgi?id=372
http://interchange.redhat.com/pipermail/interchange-users/2002-February/017876.html

These refer to somehow using the Tree Mod (by Mike Heins) and to add a line to Interpolate.pm to help get the order of categories and subcategories correct.

1. Where in Interpolate.pm does the following line go?
 
@rows=reverse(@rows) if $opt->{reverse};

Jonathan Clark mentions that it should go in at tag_tree sub at line 5163 (in 4.8.2) line. That line looks like this:

if($above->{$next} and ($opt->{autodetect} or ! $stop) ) {

Should the extra line go BELOW the above line, like this:

if($above->{$next} and ($opt->{autodetect} or ! $stop) ) {
@rows=reverse(@rows) if $opt->{reverse};

----

2. Would someone be able to post some tree code for displaying the breadcrumb trail? I'm still hacking away with IC and don't quite have a handle on working with the tags.

----

3. Will this breadcrumb code also work on special pages, cart pages, etc.?

Thanks super much!

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Save up to $160 by signing up for NetZero Platinum Internet service.
http://www.netzero.net/?refcd=N2P0602NEP8