By vfilby on
Hello,
I want to show a different primary links menu for users depending on their group. Group A get's one set of links, Group B gets another and anonymous users see a third set. menu_alter doesn't seem to touch the primary links. I suppose I might be able to theme my way to salvation but I was hoping there might be some module based way of handling it.
Thanks in advance,
Vince
Comments
Hello Vince, There's probably
Hello Vince,
There's probably a better way to do this, but here's a suggestion to start the juices flowing: Instead of using a primary menu, use regular menus and something like the Menu Block module to display the blocks in different contexts. You could easily do this based on role or url.
Thoughts?
Learn virtually any aspect of Drupal on BuildAModule, where I've recorded over 2200 video tutorials.
Block Menu
What I did to handle this situation was to use block menu and to replace the primary nav area with a region, then assign the block menu to that region. Seems to be working great so far and gives me the flexibility have block visibility and using context to control the blocks.
Thanks!
Vince