Results 1 to 9 of 9

Thread: Grouping / Filtering by Parents

  1. #1
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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!
    Brian

  2. #2
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  3. #3
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

  4. #4
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  5. #5
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default 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.
    Brian

  6. #6
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Grouping / Filtering by Parents

    Here is some Code i found in the german Forum:
    http://de.contaowiki.org/Catalog_Templa ... s_darunter

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  7. #7
    User
    Join Date
    07-01-09.
    Posts
    91

    Default Re: Grouping / Filtering by Parents

    Quote Originally Posted by MacKP
    Here is some Code i found in the german Forum:
    http://de.contaowiki.org/Catalog_Templa ... s_darunter

    regards

    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.

  8. #8
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default 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
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

  9. #9
    New user
    Join Date
    05-20-11.
    Posts
    17

    Default 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...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •