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.

category="not ID" problem, it doesn't appear to be working.

August 24, 2011 7:40pm

Subscribe [5]
  • #1 / Aug 24, 2011 7:40pm

    Adpearance

    13 posts

    Hi there,

    This one is driving me crazy. So I’m attempting to limit entries using category=“not ID” and it doesn’t filter the entries out.

    If I reverse that and try category=“the ID I’m actually trying to hide” it works in that it only displays entries that are tagged with that category. But not the other way around. Any help?

    Here’s my actual code I’m using:

    {exp:channel:entries channel="event" orderby="event_month|event_day" backspace="10" sticky="no" category="not 9"}

    Thanks,
    Colin

  • #2 / Aug 24, 2011 8:43pm

    Adpearance

    13 posts

    I figured it out.

    The documentation has it as such category=“not ID” however, just guessing, I attempted to remove the space, so it looks like this: category=“notID” and that did the trick. I don’t know if this is a bug, or just needs to be updated in the documentation, but the good news is that it’s working!

    Thanks,
    Colin

  • #3 / Aug 25, 2011 10:48am

    Sue Crocker

    26054 posts

    Hi, Colin.

    I can’t replicate the problem you’re having.

    Can you tell us which version/build of EE2.x you’re using? See EEWiki:// HowTo Determine My EE Version

    Is this a category or a subcategory you’re trying to keep from displaying?

  • #4 / Aug 25, 2011 1:38pm

    Adpearance

    13 posts

    I’m running EE2.2.2 build 20110801

    I’m attempting to hide all categories that fall under 9, as I have attached. I originally tried piping the category=“not 8|9|10|11” but that wasn’t working. But category=“not9” appears to be hiding everything within that group, which is what I wanted, just not sure why it isn’t working with the space between not and the category ID.

  • #5 / Aug 27, 2011 5:57pm

    Kevin Smith

    4784 posts

    Hmm… well, that’s definitely not the expected behavior. Do you have any add-ons installed that are related to categories or category management at all?

  • #6 / Oct 03, 2011 4:20pm

    Carlos Perez

    13 posts

    Did anything ever come of this? I’m running into the same issue. category = “not 7” does not work, but category = “not7” does.

    On a related topic - is it possible to specify a category but not another? I.e. category = “13 not 7” ... I’ve tried several different iterations of that to try and get it to work, but nothing ever did.

  • #7 / Oct 04, 2011 11:38pm

    Dan Decker

    7338 posts

    Carlos,

    Since Colin never got back to us in regards to any add-ons, we’re not sure where that stands. Are you using any add-ons that manipulate categories or category management?

    On your related note, that isn’t a supported parameter at this time. However, feel free to make a Feature Request!

    Cheers,

  • #8 / Oct 05, 2011 9:35am

    Carlos Perez

    13 posts

    Hi Dan - nope - no add-ons that should be affecting categories are installed. And I will certainly add that Feature Request!

  • #9 / Oct 05, 2011 11:26pm

    Kevin Smith

    4784 posts

    Hi Carlos,

    I’m still not able to replicate this issue. Using category=“not 7” works as expected for me, while category=“not7” does not. Could you share the code containing your Channel Entries Tag with us? And, just for the sake of troubleshooting, could you globally disable extensions to see if that changes the behavior to work as expected?

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

ExpressionEngine News!

#eecms, #events, #releases