Questions tagged [drupal-navigation]

Use it for questions about navigation menus used in a Drupal site, including the drop-down ones created with or without JavaScript.

For questions about hook_menu() or Drupal 8 routes, use instead.

52 questions
0
votes
1 answer

Menu Token Drupal 8 alternative

I am currently on the process of moving a large Drupal commerce website from drupal 7 to drupal 8. One of the biggest issues I have come up against so far is the lack of D8 versions of well used modules, the main one being Menu Token. I need this to…
Sean Lang
  • 422
  • 3
  • 6
  • 22
0
votes
2 answers

Div id in Drupal menu items

In Drupal main menu I am creating a menu item. In the path field I want to specify div id instead of path of the node. Is this possible.
user1648021
  • 67
  • 1
  • 1
  • 6
0
votes
1 answer

Drupal - assign menu to block based on node type

I want to assign a specific menu in left sidebar block, based on the node type of the page currently being displayed. I think it should look something like this, but I am stuck. function my_module_nodeapi(&$node, $op) { switch ($op) { case…
ernie
  • 119
  • 10
0
votes
1 answer

Showing the correct menu a page belongs

I have a Drupal website with 3 menus (a top menu, a main menu and a footer menu), and any content I publish belongs to one of those 3. My clients wants me to show the correct menu as an accordion on the sidebar, as a navigational support. I've…
Anyul Rivas
  • 655
  • 2
  • 12
  • 31
0
votes
1 answer

Drupal Views and Menu Block on a Multilingual Site

I have a multilingual site built on Drupal 7.34. I am using Menu Block module to show secondary level links on pages. The system is working except one condition. When I have a page built with Views module, menu block is only showing on one of the…
yenerunver
  • 416
  • 1
  • 5
  • 26
0
votes
2 answers

Drupal 7 custom menu rendering

I am new to druapl theme development. Created hierarchical menu from drupal admin. I want to render this menu in my page.tpl.php file. I have used following code, But its not rendering submenus. Its not that its showing them as display none, But…
harish
  • 578
  • 2
  • 8
  • 21
0
votes
1 answer

Drupal Showing (2) navigation menus after updating to latest Drupal

I'm seeing now (2) navigation menus on my site when I upgraded my drupal with latest core update (Drupal 7 latest). Shown below: This is showing the same links, just the first in nice styling, the other in a plain html dropdown (the undesired…
CodeTalk
  • 3,571
  • 16
  • 57
  • 92
0
votes
1 answer

Menus in certian sections

I am taking over a site and need to break up the navigation onto smaller menus for a particular section. Can someone point me to a tutorial, reference, or blog that can show me how to assign menus to sections of the site? For example: When you go to…
Wally Kolcz
  • 1,604
  • 3
  • 24
  • 45
0
votes
1 answer

How do I output a single menu link in drupal 7 knowing it's $mlid?

I'm using menu blocks with fixed parents, and because of this only the children are rendered... but I would like to render the parent links. I am able to get the $mlid of the parent, but that is as far as I can get. theme_menu_link throws an error…
0
votes
1 answer

Corrupt Drupal menu

Running Drupal 7.26 with nothing fancy and have started to encounter a corruption issue with the menu system. We started seeing the following error (truncated to fit). Doing a drush or a manual clear cache doesn't fix it, setting menu_router.weight…
mcvicar
  • 11
  • 1
0
votes
1 answer

drupal 7 menu return global results

i have one drupal menu, its page callback is best_quote, and file is handle.php.inc. the content of the handle.php.inc is:
user1611237
  • 123
  • 1
  • 5
  • 14
0
votes
1 answer

Drupal custom theme visibility to all users

I'm creating a custom drupal 7 theme menu_navigation_links('menu-headermenu'), 'attributes' => array('class'=> array('links', 'headermenu')) )); ?> Above is the code I'm using in my theme to show a menu I…
0
votes
1 answer

access to custom admin menu item by role in Drupal 7

I added a custom admin menu item which I'd like to show up for non-admin users with specific roles. Is there a way to accomplish this? Thanks in advance! Lee
LEN
  • 35
  • 1
  • 10
0
votes
1 answer

YOUR_THEMENAME_menu_tree__YOUR_MENUNAME not working

I have a custom Menu called "Footer", the machine readable name is "menu-footer". And I want override the theme_menu_tree() function for the menu. My theme name is "abc", so I tried abc_menu_tree__menu_footer() and it is not working. But modifying…
Abenil
  • 1,048
  • 3
  • 12
  • 26
0
votes
1 answer

always display submenu in drupal

Is there a plug in or a block of code I can add in order to always display submenu? The only time I can see the submenu that has a red border around it is when I click the menu item "SHOP", I would like the submenu that has a red border to be…
user1740297
  • 33
  • 1
  • 6