[ic] 3-level category tree
Mike Heins
interchange-users@interchange.redhat.com
Thu Aug 23 10:21:00 2001
Quoting Lukasz Z (dugi@prion.pl):
> Hi everyone!
>
> I've been wondering how to build a 3-level category tree using area/category
> tables layout from "foundation" store.
> To give you a specific example of what I need (for the sportsman inside of
> you;):
>
> level (1) (2) (3)
> /
> |----- skiing
> | |
> | |------skis
> | | |
> | | --------carving
> | | --------racing
> | | --------kids
> | | --------etc
> | |
> | |
> | |------boots
> | | |
> | | |--------men's
> | | |--------women's
> | | |--------kids
> |
> |------tennis
> | |
> | |------rackets
> | | |
> | | |-------beginner
> | | |-------master
> | | |-------etc
>
> Best if "sking" or "tennis" would open a new page (main page for a level 1
> category), and "skis" (level 2) or "racing" (level 3) would just trigger a
> search.
>
> How to achieve this result without loosing functionality from foundation
> admin? (I'm aware - I can build a new table for categories, but that's not
> what I'm looking for as for now ;)
>
You can't do it without losing functionality, but by modifying
your templates/components/category_vertical and the bar_link routine
you could do something pretty close. The bar_link routine would
trigger a search on whatever discriminates the third category level
and display that.
--
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH 45013
phone +1.513.523.7621 <mheins@redhat.com>
Nature, to be commanded, must be obeyed. -- Francis Bacon