Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Amigo 243 posts 568 karma points
    Jul 03, 2013 @ 14:14
    Amigo
    0

    fold out menu

    Does anyone have some code for a fold out menu for ucommerse?

    level1:categories
    level2:subcategories

     

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jul 03, 2013 @ 16:06
    Nickolaj Lundgreen
    0

    Are you looking for something like this?

    <ul>
            @foreach (var rootCategory in categoryList)
            {
                <li><a href="@rootCategory.GetNiceUrl()">@rootCategory.Name</a>
                    @if (rootCategory.Categories.Any())
                    {
                        <ul>
                            @foreach (var subCategories in rootCategory.Categories.Where(x => x.DisplayOnSite))
                            {
                                <li><a href="@subCategories.GetNiceUrl()">@subCategories.Name</a>
                                    <ul>
                                        @foreach (var subsubCategories in subCategories.Categories.Where(x => x.DisplayOnSite))
                                        {
                                            <li><a href="@subsubCategories.GetNiceUrl()">@subsubCategories.Name</a>
                                            </li>
                                        }
                                    </ul>
                                </li>
                            }
                        </ul>
                    }
                </li>
            }
        </ul>
  • Amigo 243 posts 568 karma points
    Jul 04, 2013 @ 09:01
    Amigo
    0

    im looking for a menu that only show categories in level one.
    when click on them the meny fold out the subcategories on the one you click...

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Jul 04, 2013 @ 09:53
    Nickolaj Lundgreen
    0

    You could go with the CSS hover version:

    http://www.htmldog.com/articles/suckerfish/dropdowns/

    Else you need a javascript to hide and show child list on click.

    (lots of google examples on both).

     

Please Sign in or register to post replies

Write your reply to:

Draft