Hello,

There is no option for controlling the views menu items visibility by role like on regular menu items. I can setup visibility rules on the view itself but the submenu is still generated (still having #below key on menu item parent even with empty view).

I guess the simplest would be to keep the regular visibility rules tab, but i cannot find where that part of the form is altered. When i dpm() the $form object in _menu_views_form_alter (menu_views.admin.inc, l. 141), the "visibility" key still exists so it should appear on the form...

Anyone ?

Thanks,
Eric

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

EricRondo created an issue. See original summary.

EricRondo’s picture

Issue summary: View changes
EricRondo’s picture

Got it ! Here's a working patch.

Sagar Ramgade’s picture

Status: Active » Needs review
markhalliwell’s picture

Status: Needs review » Closed (works as designed)

Visibility/access should be set restricted on the view itself, not the menu item.

EricRondo’s picture

@markcarver: as I said, even with en empty view, the #below key is still added to the parent menu item (if in a submenu) so the theme builds markup for it. For example, bootstrap adds a caret & dropdown if #below key exists, even if there is no "real" content in it...

markhalliwell’s picture

Then that's an issue with the theme, not this module (which works as designed). I'd also like to further mention that this module is no longer my focus and is not really supported anymore (as indicated on the project page).