I tried almost every combination of block settings, and have the necessary menu hierarchy, but could not get the menus to show in columns. Tried upgrading to beta4 and checked i have latest library, but still no luck.

When I look into the code that inserts the column css classes it seems there is something odd about the calculation, it is trying to compare current menu depth to the megamenu depth plus 1, but earlier in the module there is a line that always changes the megamenu level to 2 if it was 1 and you are using "navbar". This means when set to depth =1 it becomes 2 and so will never equal the menu depth. I don't really understand what the line is meant to do, but if i comment it i finally get column menus:

line 514 in superfish.module

$sfsettings['megamenu_depth'] = ($sfsettings['type'] == 'navbar' && $sfsettings['megamenu_depth'] == 1) ? 2 : $sfsettings['megamenu_depth'];

Is it that I am not supposed to use navbar? It seems like the others didnt work either so I don't think that is it. Any suggestions appreciated.

CommentFileSizeAuthor
#1 superfish.jpg84.22 KBdavewilly

Comments

davewilly’s picture

StatusFileSize
new84.22 KB

I have the same issue. I cannot get the dev.sf-megamenu-column to show in columns, the only way I have managed to do so is by setting a width for the ul.sf-megamenu. This then causes problems when I try to increase widths of dev.sf-megamenu-column (I have long link titles)..

Below is image of default menu behaviour on left and with my added width styles on right. I think I'll have to apply individual styles to each div.sf-megamenu-column until the issues is fixed.

mehrpadin’s picture

Hey there!

Liz, that line prevents the 2nd level of a NavBar to be turned into a multi-column, or at least is supposed to do so, there's a bug anyway, when I was coding that part I was under impression that when a menu is being rendered the first level will be considered as "depth 1" regardless of its location in its tree, which was not correct, that led to *first level* menus having depth 2, 4, 5 and so on and SF functions completely confused :) I'll fix this soon, hopefully.

David, setting a width for ul.sf-megamenu is what you should do exactly, take a look at the simple.css for example, if you needed more help just email me the URL to your website.

oktay’s picture

For me multimenu works only when the menu type is HORIZONTAL. It does NOT work when the menu type is NavBar.

oktay’s picture

Issue summary: View changes

typo correction

mehrpadin’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)