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

learn more… | top users | synonyms

0
votes
0answers
5 views

Is it possible to create sub-submenus with page manager?

as the title says: I'd like to create severeal menu items under one of the menu item of main menu, like Personal > Profiel, Personal > Projects etc. One of these pages are created by Page Manager and ...
0
votes
0answers
16 views

How to build/overwrite a menu with all secondary items all time expanded? [on hold]

I want to build a superfish menu. How to print always the second level below the main menu items and not using the backend with the menu item setting "Show as expanded"? Thanks and regards ...
0
votes
3answers
26 views

How do I render sub-menus?

I have a Drupal 7 installation that, for the purposes of this question, has just the core modules. Using the Structure->Menus->Main Menu form, I added some items to the menu and, using a ...
0
votes
0answers
18 views

Multi-level menu with tabs and columns

I want to create a menu in footer looking like: MODA ELEKTRONIKA USŁUGI (1) -----\/----- --------------- ---------- Odzież Buty Sport ...
0
votes
1answer
26 views

Access menu links from a module

I'm trying to display a menu in my module. I've used \Drupal::entityManager()->getStorage('menu')->load('oz-topbar-menu'); which allows me to get the title of the menu, the description, etc. I ...
0
votes
1answer
9 views

Dim background elements when displaying submenu

I am developing a site with Drupal 7 and the requirement that I need to implement is that when a sub-menu is being displayed from the main navigation bar, the rest of the site (all the elements behind ...
0
votes
2answers
21 views

Modifying a single menu link title

I'd like to replace the link title on the top link of my secondary navbar (called "explorer", links to "mysite.net/explorer", but actually just triggers a dropdown-menu) with a glyphicon and the ...
1
vote
1answer
28 views

Referenced node as menu item

is it possible to create a menu item that links to the node that references the current user? I can create a more or less suitable solution with views: a page that contains the referenced node but ...
1
vote
0answers
9 views

Is the module Menu translation necessary at all?

I am developing a Drupal 7 multidomain - multilanguage site. I have installed Menu Translation module, but it is a nightmare to have dozens of items. But, in fact, it is not necessary at all. You can ...
0
votes
1answer
17 views

Nested Dropdown Menu of Boostrap

I would like to add Nested boostrap menu in my project. (I used Bootstrap Business Theme.) I already tried with Superfish. But I don't like that much because the apppearance of menu is not good ...
0
votes
1answer
12 views

Drupal 7 Bartik Menu tabs changed to vertical list - how to reset back to tabs?

I have been working on a Drupal 7 install with the Bartik theme. Today, the main menu tabs changed to a vertical list on the left side of the page. I do not know how to reset this. I checked the ...
-2
votes
0answers
6 views

How to attach css classes to part of menu link

I have problem. I have my menu link, which is named: Hi [current-user:mail]! Welcome on our site. And I want to have css class on my mail, so on [current-user:mail]. Can I do it?
0
votes
0answers
12 views

Solution for our menu

I have this scenario: - We have domain access to show different content by location including menus - we have one top menu to show different "home pages" where the user could target information. Home ...
0
votes
0answers
35 views

Drupal 7 to 8 Module Port: time for a new class? [closed]

I'm porting the Node Hierarchy module from D7 to D8, and I'm seeking advice on a major chunk of the code. Node Hierarchy provides a parent/child relationship between nodes, and provides hierarchical ...
0
votes
2answers
21 views

hook_page_alter and trying to change the '#theme_wrappers' property

I'm going a bit Drupal crazy trying to change the '#theme_wrappers' property of certain blocks in my sidebar region. I am able to set it using hook_page_alter and can dpm() it and confirm it is being ...
0
votes
1answer
17 views

Unable to edit menu: You are not authorized to access this page

I got a very odd error for "new" admin user on Drupal 7. There are a few admin users in this site but only the "new" one that is unable to create, edit or list links on any menu. The error message is ...
0
votes
0answers
15 views

Tabs disappear when click on MENU_LOCAL_ACTION

I have used created a menu_hook in Drupal 7 as follows. Basically I want to have two tabs in my page as "Male" and "Female". Inside each tab, I want to have MENU_LOCAL_ACTION as "Add Male User" and ...
3
votes
1answer
56 views
+50

Filter menu parent dropdown by language for multilingual site?

I am working on a multilingual site that has about 60+ pages per language. When an admin user wants to add a page to the navigation menu its becoming quite the task because literally every single link ...
0
votes
1answer
15 views

read new menu link id (mlid) before new menu item is saved

I'd like to do something with menu links when they are saved. I can use hook_menu_link_alter(): function my_module_menu_link_alter($item) { my_module_do_something($item); } This seems like the ...
1
vote
1answer
15 views

The RTL css file is not working for a menu

I wanted to make the CorporateClean theme RTL. Every thing is Ok except Main Menu. It effects alignment for both languages. For Persian is also right and for English as well. As example: I wrote the ...
0
votes
0answers
15 views

How to prevent the language prefix being prepended for menu items?

There is an existing drupal site, it is in German (default). The site has not been multilingual yet. However, there is now a content type which shall be available in those languages (German and ...
0
votes
1answer
11 views

Drupal 7 Megamenu Construction Using Views in Menu and a menu module?

Currently I need to construct a responsive Megamenu and so far I have narrowed down that I need menu_views (https://www.drupal.org/project/menu_views) to output the megamenu items as each dropdown ...
0
votes
0answers
24 views

How to assign an organic group menu to a view

I'm quite new to Drupal so forgive me if I'm a bit vague. If I have a view that has a menu with a default organic group assigned to it, how do I assign a menu belonging to another organic group to the ...
0
votes
0answers
15 views

How to create a submenu based on taxonomy in node list made by a view?

I have a view showing a grid of content nodes. They all have taxonomy terms. I wish to make a block or expose a filter (or something else) that will have all the terms listed in the nodes who are in ...
0
votes
0answers
35 views

How do I programmatically (via plugins, hooks) add taxonomies to menu in Drupal 8?

I have a configured view to display nodes by a taxonomy term id. How do I add taxonomy links (/taxonomy/term/1, /taxonomy/term/13) to "Main navigation" menu programatically? What plugins (hooks) ...
0
votes
1answer
13 views

I cannot figure out how to add the search form to a child element in the menu!

I am trying to get something like this http://www.theverge.com/ on my website where you click the search icon and a search bar drops down, but I cannot figure out how to make it work. I assumed I ...
0
votes
1answer
7 views

Error when enabling Administration Language for Core Toolbar

I downloaded and enabled the admin_language module, and in one of its configuration settings, I enabled Use administration language for the core toolbar, after which it threw out this error: ...
0
votes
0answers
14 views

How to add menu in the page and link with image and slider?

I don't want to use main menu. Instead I want to put menu in the page. This menu is needed only on this page. Whenever I choose one of this menu, image which is below the menu should be changed. And ...
0
votes
1answer
19 views

What should a bilingual site look like from the backend?

Suddenly I have lost track on my new build D7 German/English site. Nothing I attempt seems to work. I will tell more about the problems below but I think its hard to help me there as long as I am not ...
0
votes
0answers
6 views

Drupal 6 merge 2 menus programmatically - add a menu into another menu

In Drupal 6, how to add add a menu into another menu programmatically? Have 2 menus, menu 1 and menu 2. Want to add menu 2 into menu 1. For example, menu 1 - a1 a11 a12 a2 a21 a22 menu 2 ...
0
votes
0answers
14 views

Show the link in management menu as inactive link if the user doesn't have permission

I created new module in drupal 7 and of course I added some link to the managment menu like the following: <?php /** Implements hook_menu() */ function MY_MODULE_menu() { ...
0
votes
1answer
20 views

Is there a possible/safe way to do a sub-request in Drupal 7

In Drupal 8 the Symfony HttpKernel Component offers a nice way to make an internal sub-request (forward a request to another page without changing the URL). I'm wondering if there is an ad hoc way to ...
0
votes
1answer
41 views

Theming a menu - removing a whitespace between the last <li> and <ul>

I want to alter the HTML of the main menu. I have a manu set up with text-align: justify. Now in Chrome, the whitespace between the last li and ul is rendered as 4px, making the last item not aligned ...
0
votes
1answer
8 views

links__system doesn't use URL aliases?

I'm trying to use the links__system preprocess function to output a menu as a select element, unfortunately though $link['href'] appears to output the URL in a format like: node/2 Even though the ...
0
votes
0answers
11 views

How can I output specific menu links from a single create menu

The goal im trying to achieve is to have a single created menu work with a header that has a left hand side menu, a logo in the center and the right hand side nav with the remaining links. I have this ...
0
votes
1answer
43 views

Implement Menu block hook function hook_menu_block_tree_alter() to add/change/remove classes

I have installed the plugin Menu block and I am very happy with the result, but I'd like to change some classes in the structure. This is what I get right now: <div class="content"> <ul ...
0
votes
1answer
17 views

Best way to dynamically change only the href of a link in the main menu not the markup

I have been digging quite a bit for this and cannot believe that I am not finding way to do this as I didn't think it would be all that difficult. I would like to alter the href property of my main ...
0
votes
1answer
17 views

Add class to menu link href tag?

I know that using hook_menu_link I can add classes to the <li> tags but I need to add a class to the <a> tags within the <li> of a menu. I've looked and can't find a way. Any ...
0
votes
1answer
19 views

No HREF on Content menu on admin toolbar

I have a very odd problem that cropped up yesterday on one my sites. The site is Drupal 7 with the stock toolbar module installed. When you access the site for the first time logged in as an admin ...
1
vote
3answers
22 views

Export menu to html?

The project I'm working on has a specific requirement where I need to export the main menu as an HTML file. I figured the simplest way to do it would be using views but I found that views doesn't ...
1
vote
1answer
15 views

Add labels to superfish sub-menu <ul>s

Long story short, I'm building a Superfish menu structure that looks like the following: http://i.imgur.com/3h0KQGX.png]1 I'm using superfish & have everything in order except the labels on each ...
0
votes
0answers
12 views

Change a menu link for translation in D7

I have tried the solution as below : function taxonomylocalize_menu_link_alter(&$link) { if ($link['link_path'] == 'node/249' && $link['module'] == 'menu') { ...
0
votes
2answers
27 views

Altering routing of user/login

I have a use case where I need to adjust the landing of the route, user/login to direct to a custom developed user/register page once clicked. What's the quickest method of doing this without ...
1
vote
0answers
25 views

Issue with “edit” links on Menu pages

I have an unusual bug i've encountered during development of a client site -- it appears that for all Editable menus, when I click on edit, the site loops me into a Redirect Loop, pointing to a menu ...
1
vote
0answers
20 views

How can I set a menu item to be displayed only on specific pages? [closed]

I want to display a menu item only on specific pages. How can I do this?
0
votes
1answer
27 views

New path creation through hook menu problem

I have installed Drupal 7. I created new module (.module file and .info file), enabled the module, and gave the permission to menu item also. If I go to localhost/siva/shop/catalog/products, it ...
0
votes
1answer
15 views

Main menu not showing on cck type content items

I have that annoying issue with my main menu not showing on nodes of one specific cck content type. The menu shows everywhere else and is set to do so in the block settings by using the Menu Block ...
0
votes
2answers
36 views

form_set_error() redirects to raw ajax response page

I have a page with a simple view. Above the view there is a menu link that when clicked loads a node form with a required file field. The form is fetched and loaded using ajax_commands into a div on ...
0
votes
1answer
89 views

Drupal 8 - Custom classes for menu links

How can I add custom classes for links into main menu in Drupal 8. This is template for my main menu called menu--main.html.twig {% import _self as menus %} {{ menus.menu_links(items, attributes, 0) ...
0
votes
2answers
72 views

Alter menu item markup in Drupal 8

I am trying to play around with Drupal 8 menu. How I understand now menu is a service, so how to alter menu output in Drupal 8? Is there any documentation? Because googling show no useful results. ...