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
2answers
2k views

Display content by taxonomy term, including sub-terms

I'm looking at Drupal for the first time in a long time, with a view to using it in a project we're starting. This seems like a very simple question, but I'm struggling to find the answer. If we have ...
0
votes
0answers
61 views

Customize CMS menu

I have created a menu from the Drupal CMS (admin > structure > menu). Now I want to change the title of the same programatically. Is it possible, if so how? I have tried hook_menu_alter, ...
0
votes
1answer
2k views

Trying to get fullPage.js implemented, but how to add data-attributes?

This is such a great script called fullPage.js I managed to load the js file and css file and even with the Void Menu Module, managed to call anchor links, but I'm struggling with the data ...
0
votes
0answers
85 views

Main menu does not display on pages with a specific path

Having a really frustrating problem with my Drupal site. On pages that have a specific path the main menu block does not load. For example I have the path.. meet-our-derms/bios meet-our-derms/test ...
0
votes
0answers
235 views

How to change #theme function of specific menu items?(not all of them)

In my site I have a menu array that is printed in my page via drupal_render function. I checked the array via krumo()* function and I found each item (link) has a property names '#theme' with value '...
0
votes
0answers
125 views

Link for a specific role to add content

I have created a menu for a specific role, how i can add a link, so the role could create content ?(I dont want this role to have administration menu, just a normal menu).
0
votes
1answer
685 views

show custom menu in page tpl file

<?php if (isset($custom_links)) { ?> <div id="secondaryNav"><?php print theme('links', $custom_links) ?></div> <?php } ?> I've create a custom menu (machine name: menu-...
0
votes
1answer
423 views

Entity reference of a menu link gives Restricted access instead of the real data

I am trying to create an entity reference of a "menu link", but instead of having the menu link name I got "- Restricted access -". It seems to be the same problem with wysiwyg profile. I'm using the ...
0
votes
1answer
49 views

Is there a way to dynamically apply a CSS to a menu that includes the taxonomy term of the current page

For example, if I have page nodes with a vocabulary called "issues", which has terms, such as "budget", "education" and "foreign policies", and there's a menu titled "Information", I want to be able ...
0
votes
1answer
193 views

Administration Structure to list menu items fails to display

When I access admin/structure/menu/manage/main-menu this should show a list of all of the menu items and enable re-ordering, enabling, etc. This has stopped working and will only display the top level ...
0
votes
1answer
393 views

Why does hook_menu add my menu items multiple times?

I'm using a hook_menu to add some custom menu items to my user menu. One is a link to an external page, one is a duplicate of the "node/add/discussion" page. I'd expect these menu links to be added ...
0
votes
1answer
83 views

Taxonomy, views and menu

I have a content type "basic". That content type is using 3 taxonomy vocabularies. Vocabulary 1 - 5 terms Vocabulary 2 - 3 terms (term1, term2, term3) Vocabulary 3 - 6 terms I have a view that ...
0
votes
1answer
255 views

Create a menu block based on path using views

I'm trying to use views 3 to create a view that I can place in a block that is based on the url path For example example.com/student/ example.com/student/page1 example.com/student/page2 example.com/...
0
votes
1answer
246 views

How to scrape specific elements of the Drupal theme to a file?

I want to save two divs - one with the site header and the other has the main nav menu - to a PHP file that can be used in other (even non-PHP) sites to replace their header and menu using Javascript ...
0
votes
1answer
104 views

Issue with menu caching in Drupal 6

I have implemented hook_menu_link_alter so that a menu link is altered for some authenticated users, but not for all. My implementation of hook_menu_link_alter changes properties of the link (HTML ...
0
votes
2answers
424 views

Altering the type of a menu item to local task (tab)

I've searched for hours but I can't find a good answer on how to alter the type of a menu item to local task (tab). The private messages 7.x module (when aided by privatemsg_filter) exposes the ...
0
votes
1answer
34 views

How to display a menu items for a node but not for it's parent

I have a page which I don't want to appear in a menu unless the user is already on that page or a child page underneath it. For example on a shopping site, I would like to have a 'special offers' ...
0
votes
0answers
578 views

multi column drop down menus

Is there a menu module through which we can create multi column drop down menus. I have tried TB Mega Menu which gives the desired result but it has some issues. The worst part is that it converts ...
0
votes
0answers
194 views

URL path to view with certain filters selected is altered by Drupal when used as a menu link

I have a view with different filter options. I need to create some links to the view that will automatically select certain filters simply by following the link. If I copy the url created on the ...
0
votes
1answer
419 views

Creating some views fields for a taxonomy menu with the active trail CSS classes?

I have a taxonomy vocabulary which I want to use to create some navigation on my site. Terms: Weather Clothes Calendar Sports I want to be able to pull these terms and put them in the navigation ...
0
votes
1answer
30 views

alter the 26 (A-Z) parent links so that just the menu link text is displayed without its associated hyperlink

Within Drupal 7 I have created an A-Z menu which contains all the links on the site organized alphabetically. In addition to these links I have 26 additional parent menu links (A-Z) from which all ...
0
votes
0answers
57 views

How do I let the user create a custom menu in a node?

On all my pages there is a side bar menu acting as a node/page specific menu. Typically I would create an entity reference field and let the user choose menu items that way. Then I'd use a view to ...
0
votes
1answer
46 views

Sidebar formatting issues

The Drupal 6 website I am working on is giving me some problems with the sidebars. Here, my 'general info' sidebar is incorrectly showing 'home' sidebar info. To the right is my 'divisions' sidebar ...
0
votes
1answer
136 views

Render menu in custom form-api module

I've created a custom menu from the drupal admin panel, and have a custom module that uses drupal's form API. I'd like to render the custom menu in this module. Since this is using form API, I don't ...
0
votes
2answers
396 views

How to avoid url conflict when defining menu items, and make sure path without wildcards will be used in favor of path with %?

In hook_menu, I have $path = "events" $items[$path] = array( 'title' => t('Events'), 'page callback' => 'my_events_page', 'access arguments' => array('view my events'), 'type' => ...
0
votes
0answers
185 views

How to set a newly created node's menu parent based on selected taxonomy term?

I am using the module taxonomy menu which autom. created menu items for each term of my vocabulary. Now, when I create a node and save it, I dont want the author to have to select the term AND set the ...
0
votes
1answer
431 views

Unable to get through to the custom form using hook_menu page callback?

Inside the hook_menu I have , $items['abc/def/%node'] = array( 'page callback' => 'drupal_get_form', 'page arguments' => array('heart_form',2), 'access arguments' => array('...
0
votes
1answer
78 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
548 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
93 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
130 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
51 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
524 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
70 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
185 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
33 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
697 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
42 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
632 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). ...

1
40 41
42
43 44
46