Questions tagged [routes]

Using a term introduced in Drupal 8, routes are the paths to which modules respond.

Filter by
Sorted by
Tagged with
0
votes
1answer
76 views

footer link to a page with hash changed content ready

I have set up the pages like this (using some php and jquery): On this page, I have some tabs, using jquery to hide and display the content on click each tab. The url will change to #this_tab_name ...
0
votes
1answer
2k views

How to disable the Superfish Accordion?

Is it possible to disable the superfish accordion 'main menu' link at the smaller responsive sizes? Instead of clicking on 'main menu' to see the navigation, I would like the navigation to already be ...
0
votes
0answers
536 views

What does “path has not been overridden because the menu item does not exist.” mean

I've noticed the following error message in a few different situations. Path has not been overridden because the menu item does not exist. Cases in witch I have seen the error message Trying to ...
0
votes
2answers
90 views

E-mail results from page callback

I have a menu hook and page callback which takes several arguments to generate some table data in a page, the page makes heavy use of entityfield_query and some other modules. I need to be able to e-...
0
votes
1answer
129 views

Multiple rendering causing a ul more

I had following code in template.php this is in function bartik_process_page(&$variables) $main_menu_tree = menu_tree_all_data('main-menu'); $variables['main_menu_expanded'] = menu_tree_output(...
0
votes
1answer
79 views

“Add link” attempt for a Menu yields 500 error

I have tested with fresh installs of Commerce Kickstart down to version 2.6, the error happened. I even disabled all modules related to the Menu module or with menu in the name, no luck. I also ...
0
votes
2answers
521 views

Correct way to create Departments/Categories cck selectors in Drupal 7?

1. My Scenario: I'm building a shopping cart and using Ubercart+Drupal 7 for it. Manufacturers will be able to log in and create their own products with Product attributes {Name, SKU, price etc} ...
0
votes
1answer
200 views

Change admin menu item

How would I unset this menu item: Content > Add Content > Article I would like to programmatically disable that path-page (node/add/article), or even better use that path for another page. I tried ...
0
votes
1answer
58 views

Menu not updated after role purchase

after a user purchases a certain role (i use UC and a rule to do so) the main menu is not updated automatically. The user had access to everything that belongs to the new role, but the menu only gets ...
0
votes
2answers
50 views

Adding a title to a ul in the menus

I need to create the following to a menu system in drupal 7. I want to be able to create a href that is not connected to a content type. Is this possible? <ul> <li>link</li> <...
0
votes
1answer
1k views

Hiding 3rd level menu from sidebar, but displaying elsewhere. Possible? - D7

I have a 3 level menu structure in the sidebar. I would like to add a set of submenus for one of the Second level menu items, but would this time like to hide it's children from the sidebar. Instead, ...
0
votes
2answers
503 views

Alter the “My Account” link in installation profile

Well i've tried the following code to insert an attribute to the user-account link on installation profile.It works for all other menu items (Home[]), except the user-account link, probably due to the ...
0
votes
1answer
50 views

Delete drupal content page

How can one Delete Drupal content page (article/basic page) without actually visiting the page. Without Drush or visiting the database (which is a little complicated in D.7).
0
votes
1answer
69 views

How to create independent sections, which consits of menu and more pages automatically

I have little problem with creating independent sections on the web. I have content type named project. It is basically landing page, which has own menu and this menu can link multiple simple pages. ...
0
votes
3answers
4k views

Remove/Rename Home tab Drupal 7

I was wondering if it is possible to either remove or rename the "Home" tab Drupal puts in by default. The site is being used as a store/shopping cart and for it's purposes does not need a convention "...
0
votes
2answers
184 views

Secondary menu links

I have a main menu with links: menu1 menu2 menu3 menu4 When entering the menu1 I want to display a secondary menu with links: sub-menu1 sub-menu2 sub-menu3 and sub-menu1 to be activated as a default....
0
votes
1answer
83 views

Same secondary menu bar on different pages and lead to different content

not sure if I can describe the situation clearly, here is the thing: I am using D7. I have this site: there are three menu items in the main menu will lead to three product pages, their layout will ...
0
votes
0answers
32 views

Module menu item doesnt work

I have a menu item in my module like this $item['imageuploadsuccess'] = array( 'title' => 'Upload Image Success', 'page callback' => 'image_success', 'access arguments' => array('...
0
votes
1answer
690 views

Automatically add a new node to a drop-down menu

When a user creates a node of a certain type, I want that node to be added to a drop-down menu at the top of the screen: i.e., so that when the user mouseovers the parent item in that menu, a list of ...
0
votes
3answers
40 views

Using block as sub-menu

Is there any module to put blocks under menu items? I will use it to create mega menu. I mean something to generate this code: <ul class="menu"> <li> <a href="...">Item</a&...
0
votes
0answers
1k views

Drupal: $_POST and MENU_CALLBACK. How works?

I've read this and this but nothing is working for me I'd like to create a menu like this $items['login'] = array( 'page callback' => 'mymodule_login', 'access arguments' => array('access ...
0
votes
1answer
48 views

Primary and secondary zone's links in drupal 7

This is my website in drupal 7. The page at http://150.254.36.80/wige/kandydaci/aktualnosci shows the following header. I would like that "kandydaci" in this white menu will be active (black lighted) ...
0
votes
1answer
631 views

wrapping menu items with span in Drupal 6

I need <span> tags around strings on my menu items. Trying to use this answer but it does not work for me. I probably just need some guidance in terms of naming things (just started on Drupal). ...
0
votes
0answers
633 views

How to pass a url as a hook menu argument

I need to send a url as a variable in path e.g. 2 arguments. The 2nd argument would need to be a url so http://www.blah.com. However, at the moment even if I use urlencode (which produces /http%3A%...
0
votes
1answer
447 views

Displaying parts of main menu in separate blocks

I need to display my main menu in separate blocks: the first sub-menu in one block, and the following two sub-menus in another block. I'm using Drupal's native menu module and also the nice menus ...
0
votes
1answer
246 views

Login Users action in, $action_links, how do i edit it?

I am still very new to drupal and have let to use all the hooks and coding needed to do everything, now I have come up with a problem, which I can not seem to fix either with a module or by looking at ...
0
votes
0answers
961 views

Ajax call not working until page refresh

When I just logged in this ajax request not working. When I hit refresh (F5) in my browser, then works well on all pages, and see in firebug call to /js/my-callback/. History repeats if I logout, ...
0
votes
1answer
543 views

Displaying titles of collapsed menus

I'm currently converting a mock-up and I need to display four menus in a list, the first two are expanded, and I need to display both the titles and menu items, and the next two are collapsed, so I ...
0
votes
1answer
229 views

how to apply .active class to only one menu item that uses optional filters

I have an exposed a filter to a page like so in drupal: http:example.com/user?profile=12 There is a menu entry for this specific link in a block in the sidebar. Is there a way drupal can add the ....
0
votes
1answer
280 views

Custom Menu Form Node Creation

I have been going over posts and examples for hours but finally need specific help on where my code is broken. I'm trying to create link in navigation that opens a form to create a new node. However ...
0
votes
2answers
357 views

Internal relative links in Menu by using http:/alias/path/to/link

In Drupal 7.22, I would like to link create an additional link to an existing node from with in a menu. This target node already has an alias and its own menu entry. I'd like to create an additional ...
0
votes
0answers
58 views

Tracking access to a page

I have the following defined, the callback tech_incentive_page performs some logic and then renders the result in a page.tpl.php. function tech_incentive_menu() { $items['technician-briefs/...
0
votes
1answer
54 views

Menu not showing for 1 server of two cloned servers

After cloning an existing server instance and pointing the new one to the same database I've modified my hosts files to load the 2nd server with the same URL as the first one. All is well except for ...
0
votes
3answers
945 views

Create a menu item with subitems

How can I create a menu link for main-menu which has related subitems? For example in main-menu I have Home About Products and for the Products menu item I want it to put all categories as subitems:...
0
votes
2answers
37 views

Listing module under one custom module heading

I have created Menu type called Form submission. Under this I want to list all the Form submitted values. There are two forms one is Contact form and help form. I want to display these two as Contact ...
0
votes
0answers
2k views

Drupal 7: how to show the main menu to anonymous users?

I've installed drupal 7 with cartaro (its shares its login system with geoserver). I created some pages and book entries: I choosed to display some pages in the main menu (I clicked on 'provide a ...
0
votes
0answers
38 views

Tabs are all over the place. Is this normal?

Tabs in drupal are all over the place for my site. Is this normal? Clicking through the tabs on the same node constantly alternates between overlay (pop up) layer and the non-overlay layer, as below. ...
0
votes
1answer
187 views

What happens to a node/menu item once it's been deleted?

Once a node or menu item etc has been deleted, is there a way to restore it? Other than restoring the database?
0
votes
0answers
129 views

Active menu trail with 2 menu items linking to same content

On a D6 site, I have a content accessible by 2 ways in my primary links: Section A : "my content" Section B: "my content" My problem is that the active trail is set on Section A, but I would like ...
0
votes
1answer
190 views

Restricting Menu Item visibility for certain nodes

Is there a way of customising what pages a Menu item will be displayed on? For example, I would only like one particular menu item in the sidebar menu to be displayed for one node, but the rest of the ...
0
votes
1answer
39 views

how to edit multiple menu itmes on menu management page

Is there a way to edit multiple menu items on menu management page. I have a site with lots of menu items under one menu, if I want to change the parent of multiple menu items I will need to drag each ...
0
votes
2answers
833 views

How to grow block menu on hover

I am trying to make secondary menu grow on mouse hover. just like this site we can see on the bottom of the page. menu block can grow bigger and show more menu. any idea what technique used to make ...
0
votes
1answer
249 views

How do I get access to fields of a node that a menu item links to?

For example, a menu item links to node/5. How do I retrieve that node so I can get its 'description' field?
0
votes
1answer
25 views

how would i go about creating variable menu links

I would like to display different menu links on each page depending on the content and relevance of each page. How would I do this?
0
votes
3answers
85 views

How can I display a block as a node?

I've got a modules that supplies a bunch of blocks. I'd like to be able to display them individually as stand-alone pages. I can embed them into nodes, but then I'll need to create each node manually. ...
0
votes
1answer
71 views

Menu for /user page

How to edit menu for /user page? I can't find this menu in the dashboard. I have: View Edit Orders Shortcuts Track page visits Devel
0
votes
1answer
64 views

How to alter main_menu for logged user?

I would like to alter/change structure of main menu links (programmatically!) for logged in users. What is the simplest way to do this?
0
votes
1answer
101 views

dynamic link to view page

So i have set up a page view which has the path about/% with % representing the argument used in that view. I now want to link to this page on the main navigation bar. I created a menu item about/%...
0
votes
0answers
157 views

Case sensitive Menu Hooks

I was checking the access logs and could spot that most of the pages were linked from other sites with different cases. node/add is same as NODE/ADD and all combinations of upper case + lower work. Is ...
0
votes
1answer
221 views

Is there any way to reset a menu's default order (e.g. Management Menu)?

I have installed Drupal Commerce Kickstart and included with the distro is a mega menu. It also restructures the menu items to a more "End-user friendly" order. I personally prefer the default order ...