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.

exp:channel:categories "show" bug

June 26, 2012 1:57pm

Subscribe [2]
  • #1 / Jun 26, 2012 1:57pm

    Adam Christianson

    115 posts

    This question may be related to a resolved thread.

    I just ran into this bug:
    https://support.ellislab.com/bugs/detail/17853

    I have been testing my site with the following code:

    {exp:channel:categories category_group="3" show="61"}
         <h1>TEST</h1>
    {/exp:channel:categories}

    In this example I have 3 sub categories, IDs 61, 62, 63, 340. If I use the code above I get no results, but if I change the show param to:

    show="61|62|63|340"

    it works, but of course outputs “TEST” four times which isn’t the desired result.

    These three categories are child categories of category 62

  • #2 / Jun 26, 2012 2:00pm

    Adam Christianson

    115 posts

    Sorry, I just saw this note in the documentation which may explain the behavior:

    “Note: If you specify that a parent category is not shown, then any children of that parent category are then unable to be shown by the tag. The parent category is required for any and all children categories.”

  • #3 / Jun 27, 2012 1:37pm

    Shane Eckert

    7174 posts

    Hello Adam,

    I am glad you were able to find the solution.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases