Jhopper wrote:Hello,
Thank you for the reply but that hasn't quite sorted my problem!
I would like the drop menu to have 3 columns with the sub-categories going down in alphabetical order.
This is my example
http://jsfiddle.net/Dnamixup/s9WDX/6/ hover over the first menu item.
The plugin it displays the sub-categories in a row of 4 across alphabetically but I need to display them in columns of 12 alphabetically, so I would have 3 or 4 columns in the drop down.
Thank you
Hi, Steve!
If you want to get this done, you have to write your custom logic in CategoryMenuTemplate.WithPictures.cshtml file. Also you have to change the CSS and the mark-up for the drop down. For example you have to find this piece of code:
<ul class="subcategories">
@foreach (var subCategory in item.SubCategories.Take(megaMenuSettings.NumberOfCategories))
{
<li>
<a href="@Url.RouteUrl("Category", new { SeName = subCategory.CategoryModel.SeName })" title="@subCategory.CategoryModel.Name">
@subCategory.CategoryModel.Name</a>
</li>
}
@if (item.SubCategories.Count == megaMenuSettings.NumberOfCategories)
{
<li>
<a class="view-all" href="@Url.RouteUrl("Category", new { SeName = item.CategoryModel.SeName })">@T("SevenSpikes.MegaMenu.ViewAllCategories")</a>
</li>
}
</ul>
First you have to sort item.SubCategories and then add your logic in the foreach, i.e. for every three categories create a new column. After that just style them.
Hope that helped you!