Bug #23459 Bug Fixed

In category_menu, show_group not working

Version: 4.0.8 Reporter: Simon Job

In a

{exp:channel:form}

tag pair, with the variable pair

{category_menu}{/category_menu}

the

show_group

parameter is not followed.

That is, I have:

{exp:channel:form channel="channelname"}
{category_menu show_group="10"}
        <select name="category[]" id="select" size="6" multiple="multiple" >
         {select_options}
    </select>
{/category_menu}
    {/exp:channel:form}

The select list shows all category from all category groups for that channel.

Using the alternative syntax, that is {categories show_group="10"}{/categories} works as expected.

  • I duplicate- it looks like the menu tag doesn’t look at any of the parameters. Granted, some probably don’t make sense there, but show and show_group do.

    I’ll add those and tweak the docs a bit.

    Robin Sowell
    08th February, 2018 at 4:12pm
  • Checking the docs, it doesn’t look like this was meant to be supported in the category_menu, but I agree that it makes sense and it’s added for the next release. Thanks Simon!

    Robin Sowell
    23rd February, 2018 at 11:39am
  • What makes you say that?

    Categories shows two ways to achieve a select list.

    Then straight under that it has “Categories Tag Pair Parameters”.

    BTW, it worked in v3.

    Simon Job
    23rd February, 2018 at 4:41pm
  • Because there’s a categories_menu tag pair and a categories tag pair- they are different tags. And some of those parameters really wouldn’t make sense for the categories_menu tag pair. Like backspace, that just wouldn’t make sense.

    But I agree that the parameters that influence the actual categories returned should work the same in both.

    I tweaked the docs when I made the fix so it’s clear which parameters work with which tag pairs and I think it’s better overall now, both in the docs and the code vs both v3 and v4.9.

    Robin Sowell
    26th February, 2018 at 10:26am

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases