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

learn more… | top users | synonyms

0
votes
0answers
25 views

Is it bad to have too many menus added with hook_menu?

I am working on a system where almost everything needs to be working with ajax. Most of the sections are built with ajax and then data is appended to respective sections and so with the forms, all of ...
1
vote
1answer
15 views

“add content” suddenly not showing on navigation block anymore

Good day, I'm having a problem of a block not showing its content! the block is stock and called navigation, which has "add content" in its links. but just recently, it has not been working on other ...
0
votes
1answer
20 views

Mobile responsive Superfish Menu [on hold]

I have written a media query for 420px and changed the media query in the Responsive Menu module to 420px. Now when I load my page my menu bar loads in the following way: First the normal menu ...
0
votes
1answer
28 views

Configure Menu Access Visibility and permission

I have a question for Menu Visibility. I have an entire live site in production. I am trying to build editorial workflow for my editors, other editors and approvers. I am using Workbench Access and ...
0
votes
0answers
28 views

Can menus be auto-generated from discovered content?

I am considering Drupal to host technical manuals. Aspects: the manuals change frequently I would bulk update the pages via curl, ftp, or some other method to be determined (point being: there will ...
1
vote
1answer
150 views

Use hook twice in a single module

I have created a custom module with some inc files for different functionalities, these inc files adds config pages for admin but i had to define all urls in .module file. is it possible to use ...
0
votes
2answers
20 views

Add Html code to Menu Title in Bartik

I am trying to add my own image menu names (I prepared png files) instead of menu titles (Navigate, Category, Home etc.). How can I do this? Which files should I need to check? I know Html Menu module ...
-2
votes
0answers
42 views

Off canvas menu for drupal 6

Are there any modules for Drupal 6 that provide an off-canvas menu? My site has mobile users and I want to hide the navigation bar when they view it. I want something like this: I haven't been able ...
0
votes
0answers
17 views

Accordion Menu - jQuery seems to stop working on product page

for several hours I'm struggling to cope with the Accordion Menu in my webshop (Drupal Commerce). Here's the story... In my webshop, beside the default content types (Article and Basic Page), I have ...
0
votes
1answer
21 views

Render a custom menu in a custom block

I want to create a block that contains somes links of a menu, without using the interface. So I created a custom module. Inside, there are somes files. a mymodule/test.links.menu.yml : ...
0
votes
1answer
14 views

How to get rid of auto generated classes in secondary menu links and add my own classes

I have taken the standard code for secondary menu from a Drupal 7 theme: <?php if ($secondary_menu): ?> <?php print $search_form; ?> <?php endif; ?> ...
0
votes
1answer
9 views

Can I call menu_rebuild() only for one module or specific hook_menu?

Is there a way to call menu_rebuild so it will only update items in selected module and / or hook_menu ? I need it to update links ( if they are already existing ) and add new ( if they are now ). ...
0
votes
0answers
5 views

How do I alter the URL of a primary_links menu item in drupal 6?

I have already tried doing this in theme_preprocess_page() in template.php and this works if I output the array to the browser but the menu itself remains unchanged. I have also tried using ...
0
votes
0answers
19 views

Link menu item to network path

I am trying to figure out a way to allow content editors to add menu items that link to Windows shared drive, example path: file:///w:/documents/001.pdf Any ideas how to best do this in Drupal 7?
0
votes
1answer
17 views

Print current drupal menu level

Hitting my head against the wall here. I've volunteered to print a list of the current menu items (at the same level as the currently viewed menu) print theme('links', $secondary_links, array('class' ...
0
votes
4answers
101 views

Correct way to add language switcher to a menu

I'm trying to add a language switcher to one of my menus using the hook_preprocess_page(): function <MODULE>_preprocess_page(&$variables) { // append language switcher to top_menu ...
1
vote
3answers
35 views

unable to link my custom content type nodes to a menu I created

I created a custom content type (pics). I can add this new "pics" content to my site (and if I want to, it can appear on front page, but I don't want to...) with no problem. But I would like those new ...
0
votes
1answer
17 views

Why are my menu items not showing under the top level menu item?

I'd like my other 3 menu items to sit under Manage Instagram in my Admin/Config menu but they are all being created as individual top level menu items. function instagram_menu() { $items = ...
2
votes
2answers
34 views

Categorizing Content

I want to have a drop down field available so that when a content author (user) creates a new page, they can select which section of the website this new content should get placed. For example, my ...
1
vote
1answer
20 views

tb mega menu is not showing in bootrap theams in drupal7

I am new user of drupal 7.3. I am using bootstrap 3.0 theme in drupal 7.3. I am using tb mega menu which is not showing. Black color box will be occurred in navigation block. Please help me to ...
0
votes
1answer
16 views

How to add a complete menu as an item in other menus?

Let say I have 3 MENUS: MENU 1 with these items: item menu 1 - a item menu 1 - b item menu 1 - c MENU 2 with these items: item menu 2 - a item menu 2 - b item menu 2 - c MENU 3 with these ...
0
votes
1answer
23 views

How to add extra class in main menu in drupal 7

Here, I working in creating custom theme in drupal 7.I am struggling to create main menu with drop down.Here i create menu with custom code is <?php $main_menu_tree = ...
0
votes
2answers
35 views

How to convert drupal 7 hook menus to Drupal 8

I am having site built in Drupal 7 and in future I want to migrate my site to Drupal 8. How can I write hook_menu() and hook_menu_alter() hooks of Drupal 7 to routing.yml files of Drupal 8
0
votes
0answers
47 views

Parent menu display submenu rather reload the page

Hi I installed a bootstrap theme in drupal 7. I had a requirement to bring hover support to drop-down menu and make parent menu clickable to display its own content. I acheive this through some css ...
0
votes
1answer
40 views

Pathauto like pattern setting for creating menu link titles

Pathauto is great, in that it allows you to set the URL alias of a node to some pattern like '[node:menu-link:parent:url:path]/[node:title]-DEV' for DEV content type. I am trying to build a single ...
1
vote
1answer
16 views

Proper approach for showing menu based on node

I'm setting up a new Drupal site and created a content type, taxonomy, and two menus. The taxonomy just has 2 items, which correspond to the menus. What I'd like to do is render the corresponding menu ...
0
votes
1answer
19 views

Custom menu link does not show up under “List links” but is in the database

I have three menus with six links each using the i18n module. All of these links are to panel pages. On one menu, however, there is an additional link to another custom panel that does not appear in ...
0
votes
1answer
32 views

Drupal shortcuts - link with question mark included

When I add a link to shortcut set which looks like this: admin/work?date_filter shortcut module changes this question mark sign "?" into this "%3F" and this link doesn't work anymore. I believe I ...
0
votes
0answers
19 views

how to hidden a taxonomy menu item use hook?

I have built a web site which has a content type call product and product taxonomy product taxonomy has sat a boolin function makes user select to show up for anonymous user or not If the user ...
0
votes
0answers
6 views

Custom menu-items permissions are erased when features are refreshed

I am using D7.37 with features 7.x-2.5 and Features Tools 7.x-2.x-dev (2014-Nov-27). I have 2 environments (dev, prod), and I use git and features to sync. After I refresh features and download to ...
0
votes
1answer
17 views

Vanishing Blocks/Menues

I have a legacy site running Drupal 6.19, and today, I found out that the entire side bar had disappeared. I haven't run any updates, and no administrators have been on the site for a while, so I'm ...
0
votes
2answers
28 views

How to add “publish content” to a node view tab

I'm developping a website where I'm asked to add a tab "Publish content" next to the Edit tab. I was told to use the hook_menu, but so far i didn't succeed in showing the tab. Here is what I have ...
3
votes
1answer
22 views

Unable to print menu links using menu_navigation_links

I'm using a custom template and attempting to customize the output of specific menu items. However when I attempt to output each link in the menu specified it outputs nothing. menu-it is the machine ...
0
votes
0answers
9 views

Menu issue on sitemap page

Here is my sitemap structure from my custom sitemap module in which 4 of my menus are displaying. But there are duplicate menu items under Products and About. I dont need MECHANICS, INDUSTRIAL and ...
0
votes
1answer
32 views

Font-Awesome issue: how to remove menu-link text from a menu item with font-awesome icon?

I installed the module Font awesome icons (with it's library) & the module Menu attributes; I've configured them, and now have a working font-icon in my main menu. The problem is that instead of ...
0
votes
1answer
14 views

How to add a menu to Drupal with all external links from module code?

I am writing a module that gets data from a couple sources, mostly XML, and then creates a nested array of values, such as "Title" and "URL"/link. I'd like to create a new menu and then loop through ...
0
votes
1answer
14 views

Unable to render menu in theme

I'm creating a custom theme in Drupal 7 but I'm having trouble getting it to render the menu I'm using the following code in page-front.tpl.php <?php if ($page['main_menu']): ?> <div ...
0
votes
0answers
30 views

Drop down of site pages for admin to choose

I have a content type which has a link (text type), and admin can manually insert his link. My site pages consist of the pages that work with views module (views page), and also pages that are ...
1
vote
1answer
37 views

Menu items visible based on checkbox

I want do show/hide menu items based on a checkbox that the user selects when he/she registers. I use profile2 for register. Should I use an external jquery script that calls on page load or should ...
0
votes
2answers
37 views

Custom 404 - menu disappears

I have created a custom 404 page using hook_preprocess_page(): function THEME_preprocess_page(&$variables) { $header = drupal_get_http_header('status'); if($header == '404 Not Found') { ...
2
votes
1answer
34 views

How to link (a menu item) to the RSS feed

In our Drupal installation there is a menu item for the RSS feed, pointing to path de/rss for the German feed. This path appears unchanged in the frontend and is invalid, hence results in a 404. The ...
1
vote
1answer
11 views

Add class to Menu Block UL unique to each Menu Block instance?

I've seen lots of answers, but they only allow you to add classes to all Menu Blocks, or to specific Menus. I have multiple menu blocks with the same menu behind them (1st level block, 2nd level ...
2
votes
3answers
29 views

Menus in drupal 7

In my sitemap, I am displaying main menu and footer menu, but as per requirement I dont want a specific menu item to display in sitemap. If my footer menu has following items: industrial mechanics ...
0
votes
0answers
23 views

New main menu item doesn't work

After adding new main menu item I received info that it is created, but it is not. I've check watchdog for some error - none. I've cleared caches. None. I've checked db menu_links - new items are ...
0
votes
1answer
38 views

How to create menu when dynamic routes [duplicate]

This link https://www.drupal.org/node/2122201 suggest us to make use of route_callbacks when we are using dynamic routes.Can someone tell me how to make use of this route name in *.links.menu.yml file ...
0
votes
1answer
28 views

Menu in Drupal8

I am currently using below code to generate routes: foreach($this->hardcopyEntityManager->getHardcopyEntities() as $entity_type => $entity_definition) { $route = new Route( ...
-3
votes
1answer
50 views

Menu for mobile responsive [duplicate]

Is there any recommended module for responsive menu? Example the picture above, click on it and a list of menu appear. Easy to configure. This content is for: many content Creating a responsive ...
0
votes
1answer
28 views

Page arguments - hook_menu

I have this two test menu items: $items['test/%id'] = array( 'title' => 'Test', 'type' => MENU_LOCAL_TASK, 'page callback' => 'drupal_get_form', 'page arguments' => ...
0
votes
1answer
50 views

Menu links for Dynamic path

I have created routes for several content entity making use of route built event in Drupal 8 and now I want to create menu links for the same routes. I searched several places but couldn't come up ...
1
vote
2answers
24 views

Print Main Menu inside a block

Very new to Drupal--trying to understand building a dynamic navigation menu for end users to handle. Is it possible to print the Main Menu inside a block I'm using for the header? e.g. <nav ...