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:Entries Category Paramater Problem

February 17, 2012 1:57pm

Subscribe [2]
  • #1 / Feb 17, 2012 1:57pm

    visionpoint

    10 posts

    I am having some major problems with the category parameter on EE 1.7.0 Build:  20101018.

    This code:

    <ul>
     {exp:weblog:entries weblog="courses" dynamic="off" orderby="title" sort="asc" category="not 422"} 
      <li><a href="#a{entry_id}">{title}</a></li>
      {categories}
       {category_id}
      {/categories}
     {/exp:weblog:entries}
    </ul>

    displays every course in the courses weblog including this gem:

    MBA 610: Business Relationship Management
    291 358 422

    clearly categorized as 422.

    <ul>
     {exp:weblog:entries weblog="courses" dynamic="off" orderby="title" sort="asc" category="422"} 
      <li><a href="#a{entry_id}">{title}</a></li>
      {categories}
       {category_id}
      {/categories}
     {/exp:weblog:entries}
    </ul>

    displays the only course categorized as 422:

    MBA 610: Business Relationship Management
    291 358 422


    WHAT IS HAPPENING???

  • #2 / Feb 18, 2012 5:21am

    Mark Bowen

    12637 posts

    As that entry is also assigned to categories 291 & 358 then unfortunately it will still show even if you put

    category="not 422"

    into the Weblog Tag parameter as it is assigned to those other categories which you want to show.

    There have been quite a few posts about this and I believe there may well have even been some feature requests to try and get around this sort of thing but as 1.x isn’t being actively coded any more then you would need to put in a Feature Request for the 2.x branch and be using that I’m afraid.

    Best wishes,

    Mark

  • #3 / Feb 19, 2012 6:26am

    Sean C. Smith

    3818 posts

    visionpoint,

    Does Marks answer explain everything for you? Is there anything else I can do to help you?
    Mark, thanks for the help on this one.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases