ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Display duplicates of an entry by category

September 20, 2012 6:57am

Subscribe [1]
  • #1 / Sep 20, 2012 6:57am

    Creative Lynx

    3 posts

    I’m building a sports facility listing which needs to be a separate list of sports and repeat each instance of where a particular sport can be done. The ultimate goal is to list all results and then filter the results by selecting sport and area using JavaScript.

    I’ve got a channel called clubs and all the sports are categories. A club can have multiple sports…

    At the moment I have this output:

    XXX Lads & Girls Club
    Badminton, Boxing, Football

    XXX United Harriers AC
    Athletics


    But I’m hoping to achieve this output:

    Athletics - XXX United Harriers AC
    Badminton - XXX Lads & Girls Club
    Boxing - XXX Lads & Girls Club
    Football - XXX Lads & Girls Club


    I’ve tried using http://gwcode.com/add-ons/gwcode-categories/ with no luck other than outputting the fist example of code.

    A prod in the right direction or even a solution would be much appreciated.

    Thanks

  • #2 / Sep 24, 2012 12:25am

    Kevin Smith

    4784 posts

    Hi Creative Lynx,

    It sounds like you’re looking to list your entries by category, which is exactly what the Category Archive tag is meant to do. Have you looked at this yet?

  • #3 / Sep 26, 2012 5:37am

    Creative Lynx

    3 posts

    Thanks Kevin. I ended up changing the design (tight deadline), which turned out to be a more sensible way of showing the information to the user. Originally there would have been repetition of each facility if it did multiple sports. Now I am just listing by facility and each facility lists the sports you can do there.

    Sometime the solution isn’t a technical one.

    That’s a really useful tag to know about, I was almost going to go down the Query module route!

  • #4 / Sep 27, 2012 11:20am

    Lisa Wess

    20502 posts

    Hey CL -

    It’s true, sometimes the solution is not so much technical in nature!  Figuring that out can be a bear, though. 😊

    I’m glad that you did get there.  If anything else comes up, please do let us know in a new thread.

    Thank you!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases