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

learn more… | top users | synonyms

0
votes
0answers
5 views

Custom menu with drupal_get_form plus form_alter_hook

I'm working in Drupal 6 to create a custom module. I have a menu that creates some custom URLs and tabs for me, and each item runs a page callback function, which itself runs drupal_get_form. What ...
0
votes
2answers
13 views

Tab Tamer - Hiding tabs based on Roles

Tab Tamer Module only does but so much. I want to hide a tab for anonymous users and have it active for other admin users. This just turns it off completely. Any ideas?
0
votes
0answers
6 views

Getting menu heading title in template.php

I am trying to edit a menu title (heading title) by customising the theme template file. So far I have been able to customise both the UL and LI elements using THEME_menu_tree__MENU_NAME and ...
0
votes
2answers
21 views

How disable view page functionality and revert to pure view with master display?

On view setting page I have view with menu link and path. I want to turn it off, revert to basic view master. I've try to remove menu, but didn't change anything. Then I try to remove path ...
0
votes
0answers
17 views

how to make a widgets in drupal?

I have made a dropdown menu which i want to display in all the pages. when the submit action perform and hit the drupal_goto(). /* *implements hook_menu(). */ function dropdown_page_menu(){ ...
0
votes
0answers
17 views

Programatically altering a menu link on a per-page basis

I've got a link in my header, called 'Sign in' which goes to 'user/login'. It is a normal menu item created through the UI. I want to use hook_translated_menu_link_alter() to modify this so that I ...
0
votes
0answers
11 views

Get submenu items for node based on taxonomy or linked menu

My website has the following menu structure: Main page (just main page) Software (links to taxonomy) Our programs (no link) Buy our programs (links to basic page) Pricing (no link) Price list ...
1
vote
2answers
30 views

Creating a responsive menu system for a site with a lot of content

I am currently creating a website which has a lot of content - text. For this I need a serious menu structure with 5-10 menu items per menu and at least 15 menu-blocks per main menu item. Further it ...
0
votes
1answer
27 views

Enable/disable a menu item programatically depending on a variable value

I need to show a menu item only in certain moments. Imagine that I've a form with some options. If 'A' is selected, I need to enable a menu item that has a form for adding information about 'A'. I ...
0
votes
1answer
40 views

How do I dynamically change the title of a menu link?

I made a menu in administration, structures, menu. I want to change the title, as it appears on the menu, of one of the links based on the gender of the currently logged in user. I have found several ...
0
votes
0answers
16 views

Why does menu item disappear when linked page is edited?

I have a site with Drupal 7.34 and Commerce Kickstart commerce_kickstart-7.x-1.16 and lately everytime a page is edited and saved it disapears from the main menu and I have to add it back. The link is ...
1
vote
2answers
68 views

All page access only to administrator in

I want to restrict my page access. Only an administrator should be able to see the page. I followed this tutorial function example_menu() { $items['example'] = array( 'title' => 'My Page', ...
0
votes
1answer
21 views

Customize admin menu item “Content”

Is there a way to change this link to only a #. In the backend it's not possible to change this.. I want this only to be a activator for a dropdown and not a link to the content page because this ...
0
votes
1answer
10 views

Add html to taxonomy_menu_block taxonomy terms

I am trying to edit the html of the taxonomy terms printed from the module taxonomy menu block. Is there a way to add a theme wrapper or to override a template so I can add html to each and every ...
0
votes
0answers
12 views

Multilingual sites: Menu with links to pages in different languages

I have a multilingual site determining the language from the URL Path (www.sample.com/lang/page). I need a menu to have a mix of links to pages in both English and French. 99% of these are node pages, ...
0
votes
1answer
52 views

Placing a drupal menu on an external site

I have a drupal install (latest 7.x version at the time of writing). It is in the root directory of my domain. In a non drupal sub-directory, called 'member' so at /member, I have 3rd party script ...
0
votes
1answer
19 views

Permission base on the administration menu?

I have used hook_permission to limit user for some places and to created a permission rule. However, I have not combine two permission from another modules for my custom module. I'm working on a ...
0
votes
1answer
20 views

how to display sub menu under the respective main menu

I want to display main menu in custom menu block and display all sub menu below the main menu block on clicking the respective main menu. Iam able to display main menu but not able to display ...
1
vote
2answers
25 views

Print Primary and Secondary Menu Links separately

I have a main menu with primary, secondary and tertiary links. The primary links will be positioned top right of the page. I want the sub menus (secondary/tertiary links) to print in a separate ...
1
vote
2answers
63 views

How to manually create a menu item for a taxonomy term?

We need to create menu items out of some taxonomy terms in D7. Currently we do this manually by switching between taxonomy and menu administration pages. That is, we: In the vocabulary ...
1
vote
1answer
16 views

Unable to get all the sub-menu's in the data compare

I am trying to add a rule for comment view for which under the actions I click on data compare.As per the tutorial, I have to click the drop down list and choose node. Whereas when I repeat the ...
0
votes
1answer
18 views

Menu tree page data not rendering any data if the page does not exist in drupal 7

I have this code to render the menu. I need to make extensive modifications of the elements, so this is why I extract it in this way (multidomain-multilanguage site, I tried everything and this was ...
0
votes
1answer
34 views

How to add a menu under Webform Results?

In Drupal 7, I know we can use Views to add sub menu or menu tab on "My Workbench". The form result I have in "mydomain.com/node/99/webform-results" contained Submissions, Analysis, Table, Download, ...
0
votes
1answer
21 views

Secondary & Tertiary links next to Parent links

How can I print expandable secondary and tertiary links to the right of the parent? For mobile, the secondary and tertiary links will need to stack below the parent links. Below is an example of what ...
1
vote
1answer
22 views

Menu added not showing

I have added a menu item in main-menu using following code $item = array( 'menu_name' => 'main-menu', 'link_path' => 'my-profile', 'link_title' => 'Services', 'module' => ...
1
vote
1answer
20 views

Add # in menu items

I want to add menu items like 'projects#recent' and 'projects#featured' where both links redirects to same page but different sections. how can I do this ?
0
votes
1answer
25 views

Adding class to nested UL in Drupal 7 menu

I'm creating my menu using view along with Bootstrap to create a mega menu style navigation. I'm having a problem with the nav showing expanded at times when you come to the site and or refresh. not ...
0
votes
0answers
13 views

Output menu using dpm() and zone template

I am using dpm($variables) to output the array elements for the zone menu. How do I use what is provided to output the zone menu in my template file?
1
vote
1answer
10 views

Display corresponding menu

I've several content types configured to add links in several menus other than the main one and navigation, and I'd like Drupal to show in a left sidebar the corresponding menu it belongs and its ...
0
votes
0answers
7 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
3answers
62 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
31 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
47 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
16 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
30 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
30 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
11 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
40 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
26 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 ...
0
votes
0answers
15 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
37 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
29 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
24 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
23 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 ...
4
votes
3answers
97 views

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
17 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
24 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
22 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
20 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
25 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 ...