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.

Using any and all together for category parameter

December 10, 2007 2:09pm

Subscribe [1]
  • #1 / Dec 10, 2007 2:09pm

    Jamie Pittock

    108 posts

    I don’t think what I’m asking for is it possible but…

    I have two category groups, ‘Section’ and ‘Genre’.

    Using the category parameter of the weblog:entries tag I need to list all entries that are in any of the supplied genres but in a specific section.

    Let’s say I have the following categories:

    Genre: Chillout (cat_id 1)
    Genre: Dance (cat_id 2)

    Section: Music News (cat_id 3)

    How can I find all Music News that is either in Chillout or Dance?

    Mod Edit: Moved to the How To forum.

  • #2 / Dec 10, 2007 2:24pm

    Jamie Pittock

    108 posts

    While at the moment all the category IDs are in the category parameter, I could move the section category to the URL and have just the genres as the parameter values.  Is there a way (I’ll take a hack right now) of getting them both to work at the same time?  (I know the docs say using the category parameter will cause EE to ignore categories in the URL).

    Just realised this should probably be in “How-to”.  Sorry.

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

ExpressionEngine News!

#eecms, #events, #releases