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.

Weblog module displaying entry regardless of category="not . ..

December 20, 2009 1:29pm

Subscribe [2]
  • #1 / Dec 20, 2009 1:29pm

    Craig S.

    12 posts

    When using category=“not 3” in the weblog tag, it works fine if no other category is assigned, but entries in category 3 (in this case) will still show up if they are assigned to another category.

    How do I prohibit all entries in a particular category from displaying regardless if they are in other categories?

  • #2 / Dec 20, 2009 1:56pm

    Greg Salt

    3988 posts

    Hi Craig,

    In this case you will have to specify all the categories that you do not wish displayed. If you are looking for ways to deal with a specific aspect of your project then I can move this thread into the How To forum so that you can get some community input.

    Cheers

    Greg

  • #3 / Dec 20, 2009 5:41pm

    Craig S.

    12 posts

    Not exactly . . . I’m only trying to not display only category 3. The problem is when the weblog entry is assigned to another category as well, then it is not hidden. For example, I have categories A, B and C, but I only want to display entries from categories A and B, so I restrict category C. What I am trying to accomplish is that for any entry filed under category C should not appear, regardless of the other categories it is assigned to. Likewise, any category that has anything except C should appear - pretty straigtforward.


    The problem is that particular entry is assigned to both categories (A or B) and C, then it is visible (but shouldn’t be, because it is assigned to category C. It only works (restricts entry) as intended when the entry is solely assigned to category C.

  • #4 / Dec 21, 2009 7:21pm

    Lisa Wess

    20502 posts

    Hi, Craig -

    This is expected behavior.  Because the entry is in multiple categories and you’re showing some of those, the entry will also show up.

    You could put in a feature request to change this if so desired.

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

ExpressionEngine News!

#eecms, #events, #releases