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

learn more… | top users | synonyms

0
votes
0answers
11 views

How can I add an identifier on a menu link

I have to import thousands of nodes and create their menu links. I need to add some of these menus links as children of existing menu links. I need to be able to identify these existing menu links ...
0
votes
1answer
36 views

Add menu item in hook form submit

I have an entity, when i submit this entity i want to add the new entity created in a menu as a link. But in this menu i have a tree links so i don't know how to put my link in a specific tree. I saw ...
0
votes
2answers
32 views

PHP - MENU_LOCAL_TASK in Drupal

How do I add #markup or #suffix to MENU_LOCAL_TASK in Drupal? $items['user/%/checkins_history'] = array( //add to to user's profile 'type' => MENU_LOCAL_TASK, 'title' => ...
0
votes
0answers
46 views

Inserting custom social media icons to nav.bar ( tb-megamenu )

I have been playing around all day and have been trying to get my social media in my navigation bar to the far right for people to click on and be directed to my social media account. I am using tb ...
0
votes
2answers
16 views

Modules to create submenu with custom markup

I have a question about how to create menu with full custom markup. Custom markup is applied not to menu items, but to entire submenu. An example of such menu is provided below: As you can see, ...
0
votes
2answers
22 views

Menu doesn't expand in Drupal 7

I have a primary link created and set of links whose parent is the primary link. I have enabled "Show as expanded" to all of them (tried with first primary also) but yet the sub-menus don't appear in ...
0
votes
0answers
15 views

Subsite menu pulled from Mainsite menu [closed]

Our organization has a large Drupal 6 site. We would like to create a new Drupal 7 site for a small project, but we would like the navigation (menu) to stay in sync with the Drupal 6 site. Is there ...
0
votes
2answers
22 views

How to remove “All Products” item in main menu of drupal commerce kickstart 2

I checked vocabulary collection, no "All Products" there. Is it created programmatically? How can I remove/change this item? Thanks in advance.
-1
votes
0answers
5 views

Taxonomy menu shows Zero items for products based on Commerce Product

I use Drupal Commerce. I have products with sevral fields (one is term reference for taxonomy Brand Serie - I use it for list of brands). Also I have products displays (content type with additional ...
0
votes
0answers
8 views

Control / modify Main Menu

I am trying to modify the main menu. It is appearing in Navigation. I'm not sure if that is controllable or not. It is block, but I've not (to my knowledge specified that it should even appear). ...
0
votes
1answer
27 views

Unable to create a menu link with Drupal 8

I am trying to create a menu link in Drupal 8. I am following this document: https://api.drupal.org/api/drupal/core!includes!menu.inc/group/menu/8 My module name is twitter_pull and I was able to ...
0
votes
0answers
16 views

Drupal page is not found error is showing [duplicate]

I am working on a project where I created a custom module to store data into database from a form. It is working fine. But now I am working on how to fetch the data from database and show the data in ...
0
votes
0answers
41 views

how to set parent div to get responsive multilevel menu

i am newbie to drupal, now I am trying to get responsive menu style through this module ResponsiveMultiLevelMenu(codrobs)(http://tympanus.net/Development/ResponsiveMultiLevelMenu/), but i dont know ...
0
votes
2answers
36 views

Drupal installation profile: menu_link_save() doesn't work for “import” path

In my installation profile, I am trying to add a menu link for the /import path (from feed_import module). menu_link_save() works for all my menu paths with the exception of /import. Anyone have ideas ...
-2
votes
1answer
55 views

How to expand TB Megamenu in opposite direction so it won't go outside of the site?

I am using TB Mega Menu for my drop down menu that has three columns with width: 665px and height: 335px. I want to do something like this: There are total 8 menu tabs. When I click on first 6 menu ...
2
votes
1answer
56 views

How to add custom fields to menu items

I've been looking at using menu attributes module for Drupal 7 to add an extra field to the menu navigation system. However this adds a new attribute to the attribute array and thus prints it out in ...
0
votes
2answers
36 views

Drupal, menu links multilanguage

I'm translating the site with my custom theme to another language. The problem is in menu links. On the original language they are fine, but with another one they are looks like "node/id". I've tried ...
1
vote
2answers
23 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
15 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 ...
0
votes
1answer
28 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
2answers
38 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
90 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
16 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
27 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
14 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
24 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
9 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 ...
-1
votes
1answer
36 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
41 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
31 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
29 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
23 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
44 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
7 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
7 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
26 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
11 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
103 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
25 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
20 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
23 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
19 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
30 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
12 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
40 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
46 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. ...