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.

Categories in Drop Down Menu not Nesting

September 20, 2012 4:06am

Subscribe [1]
  • #1 / Sep 20, 2012 4:06am

    futuristonline

    43 posts

    Hey,

    Am doing some navigation on a site and the Categories Drop Down menu is exactly what I am after. However, I have used the code from the EE documents and changed style=“liner” to style=“nested” and there is no changes. I have parent categories and one level of child categories. In the drop down, then child categories are not indented to show that they come under the parent, then are just on the same level at the parent.

    Am I missing a setting somewhere?

    EE version 2.5.2

    <form name="catmenu" action="">
        <select name="selcat">
            <option value="">--Select Category--</option>
            {exp:channel:categories channel="products" style="nested"}
                <b><option value="{path='departments'}">{category_name}</option></b>
            {/exp:channel:categories}
        </select>
    </form>

    Any help would be appreciated.

    Regards

    Steve

  • #2 / Sep 21, 2012 5:27pm

    Kevin Smith

    4784 posts

    Hi Steve,

    The output from the nested style is going to by different from what you’re expecting. The output from nesting will look like the example here, so all that styling’s going to end up mixed in with your form select field. You need more control over it than this tag offers. Have you looked at using something like GWcode Categories?

  • #3 / Sep 26, 2012 2:23pm

    futuristonline

    43 posts

    Thanks Kevin. Will look into that.

    Steve

  • #4 / Sep 27, 2012 11:54am

    Kevin Smith

    4784 posts

    Sure thing, Steve. Anything else I can do to help?

  • #5 / Sep 27, 2012 12:05pm

    futuristonline

    43 posts

    Don’t think so Kevin. Will have a look and if I have any other issues, I’ll of course post.

    😊

  • #6 / Sep 27, 2012 5:07pm

    Kevin Smith

    4784 posts

    Sounds good!

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

ExpressionEngine News!

#eecms, #events, #releases