Grouping / Filtering by Parents
Hi there,
I have a site that has the following --
1. Sports -- these are defined in Taxonomy by me (Baseball, Softball).
2. Divisions -- these are catalogs that are children of sports (Majors, Minors, T-Ball).
3. Teams -- also a catalog, belong to a division. (Baseball -> Minors -> Braves, Softball -> Majors -> Orioles).
When defining a team, I want to be able to choose a division. The problem is, division names can and do overlap between the two sports. So there's a Baseball -> Majors and a Softball -> Majors, for example.
I'd like to be able to do one of two things --
1. Group the select box by sport, i.e.
Baseball
- Majors
- Minors
- Juniors
- Rookies
- T-Ball
Softball
- Seniors
- Majors
- Minors
- Juniors
- T-Ball
- or - 2. Allow them to choose a sport first, then filter the list of divisions by the chosen sport.
So far I haven't been able to figure either out. I've tried playing with the "parent filter" and various view options, but I could not get it working.
Would anyone perhaps have any tips on where I need to look (or maybe it isn't possible, which is cool too).
Thanks!
Re: Grouping / Filtering by Parents
Hi,
try it with a list-module. There you can make a list with the Headlines and the sorted Groups.
regards
Re: Grouping / Filtering by Parents
Hi Mac,
Thanks -- I had forgotten about this post.
Sorry if it wasn't clear -- this is actually in the backend that I wanted to do this. So I'd like to present a backend user a select box (or pair of select boxes) that do what I described.
Re: Grouping / Filtering by Parents
Hi Medianomaly,
for the Backend I have no Idea how to do this ^^
The only way I know is in the frontend.. maybe you can make it with the Frontend Editing. so that the people can administrate it there.
regards
Re: Grouping / Filtering by Parents
OK -- thanks.
On a side note, is there any documentation on using the "parent filter" you could point me to?
The only thing I could find was this old post:
viewtopic.php?f=27&t=1003
I am just curious about it, is all.
Re: Grouping / Filtering by Parents
Here is some Code i found in the german Forum:
http://de.contaowiki.org/Catalog_Templa ... s_darunter
regards
Re: Grouping / Filtering by Parents
Quote:
Originally Posted by MacKP
Preemptive help is awesome help. This was exactly what I was needing before I even realized it. A few modifications from the German example and it applied to my current project perfectly. Thank you.
Re: Grouping / Filtering by Parents
Fine :-)
I hope on some day we can translate the catalog wiki... but at the moment i have not so much time and i need to rewrite the instructions for the catalog at the svn on some points...
regards
Re: Grouping / Filtering by Parents
Hi, Medianomaly, did you finally found a solution for the backend filtering?
I'm trying to do the same thing on a catalog with region -> province -> city but it doesnt' work: it just reloads the page and prints error messages for the mandatory fields which haven't been filled... :(