This tag is for topics related to the Drupal menu system.

learn more… | top users | synonyms

1
vote
2answers
17 views

Adding a views block to a menu? Or adding a menu to a views block?

I need to create a dropdown menu which consists of the menu items and also a views block of recent nodes. Yes this is technically a megamenu, but how would one build it without a megamenu using only ...
0
votes
1answer
9 views

How to alter tabs that have wildcard in bartik main menu

The problem is that I have some menu items with wildcard that I wanna add in main menu tabs, but can't realize how to do it. It can't be solved by hook_menu as I undestood. Tried use ...
1
vote
1answer
12 views

How to add paragragh information under hovered menu item?

Hi all, I want to add descriptions under my menu items like above (Eg. Home (ADD my description) Products (etc)? Do I have to create children under these menu items and enable these???? Any advice ...
-1
votes
1answer
23 views

Enable menu item when user has added a node

In my website the user can create a node. I want a menu link to appear only after the authenticated user has created the node and not before that. Is it possible to enable a menu link only when the ...
0
votes
0answers
8 views

Broken hierarchy when putting views from code into management menu

I have hook_menu() with: $items['admin/bonds/pages'] = array( 'title' => 'Pages', 'description' => t('Views of bonds components.'), 'page callback' => ...
0
votes
1answer
42 views

Can't edit Main menu block in sidebar by clicking on “gear”

Today on one of my websites I encountered something strange. I have my "Main menu" block in my left sidebar, and when I hover over that block, the "gear" to edit it shows up, but clicking on it does ...
0
votes
2answers
19 views

How do i use a template file for my content type?

quite new to drupal here so forgive me if things seems evident for you.i'm building onto an already existing site in drupal 7. the site is a onepager frontpage and from the frontpage there are links ...
0
votes
1answer
9 views

Expanded navigation in Books

By default the navigation in books is collapsed: Fruits Vegetables Is there any way to make them expanded, so that the entire tree would be visible? Fruits Apples Bananas Vegetables Tomatoes ...
0
votes
1answer
21 views

translate menu item using entity translation

I am kind of confused and really need some guidance Is there a way to translate menu items using entity translation?(One item for all languages) Thanks
0
votes
0answers
8 views

'Unread/Read' Superfish Menu Item

I am trying to create a Superfish menu item that uses an 'Unread/Read' code on the item itself. I have a news page that I would like the menu item to flash or have a different appearance if the ...
0
votes
1answer
18 views

Remove link from active page in menu

I need the active page in my menu not to be a link. So let's say I'm on the services page, I need my menu structure to look like this: <ul class="menu"> <li class="first leaf"><a ...
0
votes
0answers
7 views

features not storing menu links

I am using Features and I'm trying to package up a menu in a Feature. I have been able o create the menu, but the menu created by the feature doesn't include any menu links. The reason for this is, I ...
0
votes
0answers
23 views

how do i link text on the frontpage to an article [on hold]

i know this might seem like a question that's been asked a million of times before but quite honestly i cannot find the right posts about this (must be i don't know the exact taxonomy for it) I have a ...
-1
votes
1answer
30 views

Menu will not display - D7

I have an issue where I have created a menu within Drupal, assigned the block created by that menu to a region and set it to display on certain pages, but it's not displaying. It's a Drupal 7 site (v ...
-1
votes
1answer
15 views

is my menu-block not properly inserted?

quite new to drupal and having a small issue i can't seem to solve. it's quite a lot to start to explain so i think it's best to just send you the link and explain the problem. take a look at ...
0
votes
1answer
35 views

add class to LI

I need to be able to directly add a class to li in a menu. I have a secondary side menu that needs to change whenever i'm in a different viewport using bootstrap. My menu in question is using the ...
-2
votes
4answers
27 views

Drupal 7 Menu creation problem

I am trying to create a new menu link. But the system doesn't allow me to do so. The path 'New' is either invalid or you do not have access to it. The path 'testss' is either invalid or you do not ...
0
votes
1answer
20 views

Term taxonomy child from first and second level menu

I have a drupal commerce with taxonomy which have child.The menu was generate automatically. Exemple: Vehicle |-->4 wheel |-->car |-->bus ...
1
vote
1answer
15 views

Cross domain menus and blocks, but not users and content data

I'm trying to create multiple sites(maybe over 20 sites) using the same menu and some blocks, but not others. I found these modules have very similar features/functions, they are Domain Access, Domain ...
0
votes
2answers
31 views

How to make a menu like this one? [closed]

This menu looks really nice. Im trying to do one similar. Any suggestions on how to start and what modules should I use.
0
votes
0answers
6 views

How to set permissions for multiple menu items/entire menus at once

How would you go about restricting access to entire menus based on role at once, rather than having to go through one menu item at a time? I'm in the situation of having 30 different roles and 100+ ...
0
votes
1answer
5 views

Show item as local task but hide if argument is not provided

I have three tabs and third have wildcard in path. I added access callback for this menu item that checks if no argument then close access. The tab not shows afte that but ther is error "Notice: ...
0
votes
1answer
19 views

Mucho Menu is Not Displaying D7

I am using Drupal-7. I am trying to build a Fly out menu that have images, content blocks. I am using the MuchoMenu to create top menu into my site. I wanted to create Flyout menu same like ...
0
votes
1answer
13 views

Link in main menu does not point to specified path

I'm trying to add a link to my site's about page to the main menu as an "About" link. I have configured it in the following manner: Menu link title: About Path: node/2 Description: (none) Enabled: ...
0
votes
0answers
8 views

Need to append active class to links in views footer

I have a view panel that I am using as a header for a set of user profiles and their secondary pages. Right now I have links to the different secondary pages in the footer of the view, like so: I ...
2
votes
1answer
65 views

Overriding menu.html.twig just for the primary menu

Drupal 8 Beta 1 has a lot of nice templates to use which can be brought into a custom theme and then customized. I brought in core's menu.html.twig into my custom theme and indeed I can customize ...
1
vote
2answers
23 views

menu inside views page

I was wondering if this is possible. I have a views which is displayed as a page and I want to have menu inside that page. Is there a module available to achieve this? Here's a picture of what I want ...
0
votes
2answers
19 views

link to profile in menu

I am using the default profile as a "user dashboard" I have a main navigation link that needs to link to the users profile so is there a way to insert a dynamic link based on the current user? I need ...
0
votes
0answers
20 views

links__system_main_menu hook - add a anchor

I want to add an anchor manually to the mainmenu of my template. So I've made a hook in my template.php: function MYTHEME_links__system_main_menu($variables) { $link = url('', array('fragment' ...
1
vote
0answers
18 views

hook_form_alter node menu and path settings

I have 2 problems which I have been trying to solve using hook_form_alter. I need to have the Provide a menu link, Indicated in the image below, checkbox selected by default on particular nodes. I ...
0
votes
2answers
24 views

Page not Found on hook_menu items

I have create simple hook_menu but when i clear cache retrieve Page not Found function sanabel_calculator_menu() { $items = array(); $items['iban_generator'] = array( 'title' => ...
0
votes
0answers
11 views

d7- Translate menu item programically

So, I'm using i18n module to translate elements of my page. I've added menu item by this part of code: //Create main-menu item for news page $item = array( 'link_path' => 'recent-news', ...
1
vote
1answer
36 views

Why does “my blog” menu link disappear when I use a view with the path blog/%?

When I create a view with the path blog/%, the menu link "My blog" disappear from the main menu but still exists in the database. The view works exactly as expected when I go to /blogs and click the ...
0
votes
2answers
32 views

Hide menu item in specific block/region

I have two instances of main_menu on a page. One is in the header, using superfish. The other is in the sidebar, using menu_block. I want to hide a menu item in the sidebar and show it in the header. ...
0
votes
0answers
9 views

sub-menu not loading in custom menu

<?php $menu_name = 'menu-menu-secondary-menu'; if (count(menu_navigation_links($menu_name))): ?> <?php print theme('links', array('links' => menu_navigation_links($menu_name), ...
0
votes
1answer
33 views

Enable Node menu automatically

I have a need to automatically create an Article node type each time a Basic-Page node type is created - I am using Rules successfully to achieve that effect. My problem is a Menu link also needs to ...
0
votes
0answers
20 views

Expand menu links down in a tree

I'm using Nice menus, but it expands children sub menus to right only. I want it so that when you hove on main parent link, it drop-downs a sub-menu with all its children submenus expanded down in a ...
0
votes
1answer
12 views

Drupal 6: Custom Menu not Expanding when Parent (generated by views) is selected

I have a Drupal 6.26 site with a custom menu like so: -Category 1 --Page --Page -Category 2 --Page --Page ... All Category pages are genrated by a view (e.g. sitename.com/intranet/category) All ...
0
votes
1answer
18 views

How to automatically create subitems based on node entries?

I have a content type called "brand", and about 30 brands. I want them to automatically appear as a list of items below a main parent menu item. Is there something that does this already?
0
votes
0answers
3 views

Translating menu item

According to https://www.drupal.org/node/323101, we should not use t() for the title and description of each menu item anymore. I have some menu items listed in Main menu that are generated ...
0
votes
1answer
18 views

How to force Local Task Menu to display on specific pages

I’ve made a tabbed display out of my Local Task Menu as imaged. Some of the extra buttons are ‘pages’ as made with ‘pages manager’ . Here you can assign the page to the Local Menu; when doing so ...
0
votes
3answers
93 views

How to implement jQuery Accordion for a Menu?

I'm looking to implement something like the Accordion Menu module, but unfortunately that module has issues with Menu Block and other modules... so what's the best way to implement the jQuery ...
0
votes
2answers
106 views

How to add custom login logout links in drupal7 bootstrap theme?

I am new to drupal, but i had a requirement, my current site using bootstrap theme(drupal 7) . Previously there was no login and logout buttons on header. Today i got html login and logout strip from ...
0
votes
1answer
32 views

Display an image in menu generated from taxonomy terms

I am using Drupal 7 with Taxonomy and Taxonomy Field Menu to generate a menu based on taxonomy terms (Categories) - including node links (the terms themselves are not linked, just the nodes, in case ...
0
votes
0answers
22 views

How to load different menus according to context?

This should be seemingly simple. I've bought a Drupal theme and it doesn't allow custom menu modules to be used for displaying menu items, e.g. menu_block or tb_mega_menu. It displays menu items from ...
0
votes
0answers
8 views

How to get the parent title of a custom menu active item

When using a custom menu I am able to use the menu_block module to layout different combinations of parent -> child levels of the menu in various areas of my templates which is great, but now I also ...
0
votes
1answer
17 views

How to include Vertical menu in the page template

I am trying to build a theme for my own use in Drupal 7. My main menu should be vertical in the left side bar. No dropdown, only one level. I have customized it in my styles.css as #vertical-menu but ...
0
votes
0answers
16 views

Menu link description translation with apostrophe changed in &#039;

I'm having trouble with showing the description of a menu link in different languages. I'm using the module Menu Block for Drupal 7 to have submenus. I'm using a sort of tag language called Drupal ...
0
votes
2answers
41 views

drupal 7 parent menu item will not hide for authenticated user

Could any one give me some ideas on what i need to check please? I wish i could just show the site, but of course it' for my company, so I can't, but I have a menu bar at top of my page home, ...
0
votes
1answer
28 views

Drupal doesn't output list of children on custom module page

I am on Drupal 7. I want to create a page that lists its children, the same way you see the list of links in 'admin/structure' (Blocks, Content types, Entity types ...). I have modified child 1 and ...