Currently, those menus which users do not have access to are still visible in node edit page (under Menu settings.) Although they are not selectable, it would improve usability if we can hide them altogether to avoid confusion. I have tried looking through the codes but I couldn't seem to find how it works. Can someone share some pointers here?

Comments

sirclickalot’s picture

I wholeheartedly agree Sir!
Absolutely, improve this excellent little module no end by hiding what you're not allowed to access/use.
I'm sure this would be a relatively quick and simple thing for the maintainer to do.
Mind you, if you have access to submenu items in any menu then you'll still need to see the parent items of it!

jphelan’s picture

I agree too. I would love to see this or even the option to hide or show, although I don't know why you would want to show someone something they can't use.

trebuchet77’s picture

I just added this CSS and it seems to work, as all the non-selectable menu items are optgroup

.menu-title-select optgroup {
display: none;
}

drasgardian’s picture

subscribing

css workaround didn't seem to work in chrome.

TripleEmcoder’s picture

Subscribing.

sirclickalot’s picture

I agree, for some unknown reason the CSS does not hide the OPTGROUPS in Chrome.

Instead, the following little snippet of JQuery does the job rather nicely...

$('#edit-menu-parent-wrapper .menu-title-select optgroup').remove();

N

jima’s picture

Where can I add this code?