
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] 3-level category tree
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
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users