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

learn more… | top users | synonyms

0
votes
0answers
14 views

Not having the permission to update menu path

I was trying to modify the path of the navigation menu link already created via admin/build/menu-customize/navigation. I am getting the following error When i try to create the new menu also i am ...
1
vote
1answer
33 views

How to make Drupal highlight the same menu item for 2 different nodes (URLs)

When defining the menu item, I can only choose a unique URL for language. But I want that a bunch of pages, one of them the referenced by the menu item, highlight that menu item (Products) so I know I ...
0
votes
0answers
8 views

Translatable menu links in hook_install

I am creating some basic menu links in a hook_install() implementation with the snippet below: $t = get_t(); // Add My Profile link $my_account = array( 'link_title' => $t('My Profile'), ...
6
votes
1answer
30 views

hook_menu_alter when using Organic Groups

I want to change the menu button on my main nav bar depending if the user is or isn't a member of a group. I need one button to 'register' if the user isn't part of a group and that same button ...
0
votes
1answer
21 views

How can I create Menu items through hook_install()?

Like it was said in subject, how would I do that? I need to create menu items once after module install and have the ability to edit them if needed. module.link.menu.yml won't give me that ability. ...
0
votes
1answer
21 views

HTML link support for Twig

In the menu.twig.html file I'm using the "link" function, but it displays raw HTML, if I use HTML tags in menu titles. Is there any way to render HTML links from menu.twig.html?
-1
votes
1answer
18 views

Trying to modidy a menu hook_menu_alter

What is the best way to add a link to the user menu for a menu defined in my custom module?
0
votes
1answer
8 views

Block with #markup urls

I have a very big content written as a Basic Page where i want to construct a block with a menu tree structure next to it, in order to let users to click on a link and to guide them to the appropriate ...
0
votes
1answer
29 views

Get menu item of a content type

Is it possible to get the menu item of a certain content type through the API? The idea is to improve Markus Orenstrat solution to set the active trail based on the content type. As it stands it ...
1
vote
1answer
49 views

Drupal 8 REST - How to export Drupal 8 Main navigation menu with REST service (JSON)

I have tried to GET main menu with rest path "/entity/menu/{menu}" but all I get in response JSON is a menu properties as uuid,language,id... without menu structure (links...). { "uuid": ...
3
votes
1answer
38 views

Multi level menu in Drupal 8?

I've created a multi-level main menu in Drupal 8, all levels need to show by default (they are revealed on hover/tap). Unfortunately when adding this menu as a block, Drupal states: The menu will ...
0
votes
0answers
11 views

How to create an admin drop-down menu

I'm trying to build a simple admin menu however it isn't displaying correctly. I'd like it to show 'Custom' in the admin tool bar with 'Sub' as a drop down. Clicking on 'Custom' should take you to ...
0
votes
0answers
10 views

How to I style the Superfish accordion menu to have bars?

I would like to show my super fish menu with bars as shown in the picture (when in mobile responsive mode), but at the moment i can only get the word "Menu". The menu functions perfectly, i just ...
1
vote
2answers
13 views

how do i add a login menu to superfish menu module?

I thought i would be able to add the default User Login menu to a Superfish block, but it doesn't appear in the drop down list to be able to select when configuring the Superfish block. Can anyone ...
0
votes
0answers
36 views

Cannot chose option Translate and Localize for menu translation

I installed Modules Internationalization and Variables on Drupal 7 fresh installation, then switched on nearly all included sub-modules (actually I also tried it on Panopoly installation with the ...
0
votes
1answer
14 views

Menu link that uses title from router item's title callback?

In the user menu, I would like the menu link for the "user" path to use the dynamic link title from the title callback, instead of a custom link title. I know I could alter this on the theme layer, ...
1
vote
3answers
47 views

Hide and Show Menu items using rules

I want to HIDE and/or ENABLE certain menu links that are present on my main navigational bar depending whether users are/ aren't part of any group. I am currently using the Rules module with these ...
0
votes
2answers
27 views

Missing sub-menu

I have configured my main menu to have several sub-menu entries but unfortunately they don't show up. The menu is rendered using a custom template (menu--main.html.twig) but I don't think that this is ...
0
votes
1answer
20 views

How to create dynamic panel column content?

Hello i am new to drupal and trying to make a dynamic column content using panels, so i had created a two columns the right side one is a menu and left side one is about to be dynamic, so when we ...
0
votes
0answers
18 views

Make Drupal Admin menu a submenu of custom menu?

How do I make the Drupal 7 Admin menu a submenu of custom menu? For example: Custom Menu --Link 1 --Link 2 ---Sublink ---Sublink -----DRUPAL ADMIN MENU --Link 3
0
votes
0answers
33 views

How to set the title of a modal window in Drupal 7

I am using the following code to create a new page, which is rendered as a modal window by using a link with the ctools modal attributes: $items['mymodule/%ctools_js'] = array( 'page callback' ...
2
votes
2answers
127 views

hook_menu_alter in Drupal 8

I want to change the menu type in Drupal 8. In Drupal 7 we can achieve this using hook_menu_alter function module_menu_alter(&$items) { $items['admin/config/people/ip-blocking/default'] = ...
2
votes
2answers
37 views

Drupal 7 sync one menu items into other menus

I have a Drupal menu called Top-Nav which I use for my Top Navigation with the following 6 menu items(for example) Home a b c d e Each of a, b, c, d and e have sub items. I also have ...
2
votes
1answer
16 views

Menu item with update text (title) in real time

I have a menu where one of the items (menu links) is a link to a view where I can see all comments that I have to moderate. Which I need is (if it is possible) to have the title of this link that ...
3
votes
1answer
71 views

Adding classes to <a>

I am trying to add classes to the <a> tag output from menu.html.twig. I can add these classes to the <li>, but not the <a> tag. In the twig file I have a loop and I need to add the ...
0
votes
0answers
14 views

Drop down menus fails on iPhones only

Posted by chandraswami on January 10, 2016 at 1:26pm [Drupal 7.41] [Webserver GoDaddy Linux] I just recently discovered that my website's Main-Menus will not activate or drop-down at all in an ...
0
votes
3answers
42 views

Creating a menu tab

I'm using Drupal-8.0.1. And I have been developing one custom module. In that module, I have created a custom form that to be shown in the path admin/config/people/ban/settings. By default when we ...
0
votes
1answer
14 views

How to display menu block but deny adding a new instance?

I have a menu which has a block provided by the system automatically. This menu has links that come from a module which defines the menu(config). This menu block can be seen(ie. the block is visible) ...
1
vote
1answer
35 views

Routing in Drupal 8 for basic pages

I've just begun the transition process from D7 to D8. I installed D8 and added a basic page w/ a menu link. I then began to explore the new D8 routing system and expected to find a .yml file that ...
0
votes
0answers
7 views

How to generate URL based on the menu and not have the top parent menu link?

We have setup path-auto to use the following URL path pattern for article content type [node:menu-link:parents:join-path]/[node:title]. Currently the URL path using the above path patterns results in ...
1
vote
1answer
55 views

How to create programmatically menu links with just created nodes during installation profile in aegir ?can't get nid!

I am creating a set of nodes in an installation profile. When I try to create menu links for them in the same PROFILE_NAME.install, the links don't get created. I have also tried creating the menus ...
1
vote
1answer
41 views

Assign menu programmatically upon saving node

I'm using Superfish module for my menu. I have product parent menu where I need to display the 3 categories as sub-menu. Those 3 categories has been added to the menu with the help of Taxonomy menu ...
0
votes
0answers
15 views

Superfish multilingual menu showing both original and translated links

When looking at the site in default language, the menu is correct. When looking at the site in translated language, the links displayed in the main menu are both in original language and translated ...
1
vote
1answer
23 views

Drupal 8 add checkbox in Menu settings at node

I would like to add one checkbox in Menu settings at node /node/add/{Content types} I am not sure how to do that. I need to use Form and Controller. What form I need to include? This is some of ...
0
votes
3answers
40 views

How can I add a menu link with no URL so I can add a FontAwesome icon link?

How can I make dummy menu links with Drupal? This image explains my use case. I want to make a 'dummy' menu item, so that when I click it the search panel opens. This is simple using HTML, but ...
1
vote
1answer
38 views

Multilingual menus in Drupal 8? - Logic and architecture

A question dedicated for developers: What is the right Multi-lingual option for entities and menus in Drupal 8? In contrast to Drupal 7 that never asked me for a menu language, some entities and menus ...
0
votes
0answers
40 views

Drupal how to remove active class in main menu

One item in the menu has sub-items that point to the same page (just with different arguments) ex: Products - List item 1 \products?pid=1 - List item 2 \products?pid=2 - List item 3 ...
0
votes
2answers
27 views

Admin form not validating in a module

I am coding a Drupal Module wich limits the node creation to users who bought some products. e.g. A user bought a 5 photos + 5 videos pack, the module limits his number of photos & videos he can ...
3
votes
1answer
32 views

How to set a menu link to user/edit in Drupalgap?

I do not need the profile view tab and would like to link from a menu directly to user/%/edit/. In settings.js below I tried different paths, none of which worked. // User Menu Authenticated ...
0
votes
0answers
38 views

Deleting core Drupal 8 menus - Can't delete some native menus

I've installed Drupal 8 in a minimal installation on purpose - I thought it would come without any menus and will let me custom build all of my menus but I was wrong - It came with 5 menus... 3 of ...
0
votes
0answers
10 views

Get translated navigation with entity translation module (programatically)

I'm using Entity Translation Menu module and I've translated all the main-menu links. Now how is it possible to get translated menu items according to current language? Variable $main_menu in ...
1
vote
1answer
19 views

How can I add a menu link to a page with a form in DrupalGap?

I made a custom page that has a form on it. How can I add a menu link to the authorised user menu? There is this very useful documentation http://docs.drupalgap.org/7/Menus/Adding_Links_to_Menus but ...
2
votes
1answer
32 views

How to Reorder menus (not menu items)

I have the standard Main Menu, Management Menu, User Menu, etc., plus a bunch of custom menus. They are consistently shown in the same strange order (not in the order created, not alpha, not alpha by ...
0
votes
0answers
5 views

change priority on xml sitemap based on the submenu level

Is there a way to change the priority of xml-sitemap based on the submenu level automatically? Ex: Menu 1 --> priority 1 Submenu_Lvl1_1 --> priority 0.8 Submenu_Lvl1_2 --> priority 0.8 ...
0
votes
1answer
21 views

How to create a main menu with dropdown?

I want to create a main menu with dropdown. There will be collapsed links in each menu heading. When the user hovers over one heading, links accompanied by that header will be displayed in a box. I ...
1
vote
1answer
25 views

Menu Token Broken

I have been looking around for an answer and haven't found an answer, so if this is a duplicate, let me know and I'll delete it. My menu token module no longer works, even with the same settings. I ...
0
votes
1answer
24 views

What causes menu to stop querying for children half way through menu

I have a 'primary menu', rendered in one case using the 'bartik' theme (site preview) and rendered in the other using the 'Bootstrap' theme. (site preview) With the bootstrap theme, working from ...
1
vote
1answer
68 views

How can enable and disable the created menu by coding? [closed]

Suppose that we have a parent menu like 'Pmenu' and there have two child 'Cmenu1' and 'Cmenu2' now on some condition only one child menu will enable. This is possible?? by Coding either in theme or ...
0
votes
1answer
23 views

Menu disappears on small screens

On this site I implemented the Multi Level Push Menu. All works fine, but the menu disappears on small screens (tablet width and below). I use Bootstrap 3 und Drupal 7 in this project. I already ...
0
votes
2answers
30 views

Limit access and editing menu by user

I have created a new menu and I'm trying to limit the access to a particular user to edit instead of role with the following code but it's not working, I still can't see the menu and edit the menus ...