Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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

Display hash anchor tags into drupal 7 menu items without modifying hooks or adding modules?

currently when path url in menu items are set to: node/1#anchor the anchor is removed. How would you solve this?
0
votes
1answer
256 views

Add meta data to menu items

I have a Drupal website where many custom modules are implemented. These modules create custom rendered pages which are linked to menu items. This way a menu item represents a custom rendered page. ...
0
votes
1answer
249 views

add first/last classes when using theme_menu_link

Im building my own menu tree for various reason, but one think i miss is the first / last classes. I dont find anything about it in the API and i do have drupal_attributes($element['#localized_options'...
0
votes
1answer
70 views

Menu view does not render when editing profile2 profile

I am using profile2 and "Menu Views". Why would a view that I have in the menu not return any results at all when editing a user's profile (at the url /user/XXX/edit)? The menu view works on every ...
0
votes
1answer
334 views

Omega footer navigation

I'm making a footer menu. The base-theme I use is Omega. Now I'm looking for the best way to add a CSS value to each menu-item, so Omega places them next to eachother. Basicaly, what I would like to ...
0
votes
1answer
840 views

Jump to navigation link

I would like to add a "Jump to navigation link" to the Utility menu at the top. Setting the path to "#main-content" doesn't seem to work. The path '' is either invalid or you do not have access to ...
0
votes
0answers
26 views

Homepage sidebars (menus or blocks/modules)

Is it always recommended to use Menus for the sidebars on the homepage for example? Or would you sometimes use blocks and manually add the links? In which circumstances would you for example create a ...
0
votes
0answers
609 views

How to remove main menu from drupal site

I want to remove the main menu from my drupal site, however after unchecking that box in appearance the menu bar still persists. How can i permanently remove the main menu?
0
votes
1answer
294 views

Alert after form radio has been selected

I am trying to use drupal ajax to test if an email address from the form it is in my database. For that i have altered the form and added the following line to the element: $form['field_radio']['#...
0
votes
1answer
68 views

A question about views and how to let sub menus link to the view like the main menu

I created a view, like products. The path is /products, and the normal menu item is products and I have a vocabulary with the name products. The vocabulary's terms list: product-a product-b product-...
0
votes
1answer
276 views

Menu with argument from views

I want to create menu block for each user on sidebar. In it there would be links like Videos, Images, Bio. So i made view with argument and url is usertype/%/videogallery It is working fine, but how ...
0
votes
0answers
51 views

Menu does not appear while viewing a node of a particular content type

I've a singular problem. On my installation I've several content types and I've a menu that appears on every page. The problem is that on every node of a certain content type (and ONLY with nodes of ...
0
votes
1answer
130 views

Compare two menu tree objects

I'm trying to add custom css class to a particular menu, same task mentioned here. I moved a little further and found this article. So I put following code in template.php: <?php function ...
0
votes
1answer
308 views

Block not showing on a matching path (menu item duplicate)

I have a strange situation and would like to verify it with you. I have a menu block of main manu level 2+ links. Corporate [<--block title, level 1 of Main Menu] About Us [corporate/...
0
votes
1answer
49 views

Why does the EN version of the Main menu not appear on the EN version of my site?

I can't see any menu in the EN version of my drupal site with the following settings in my menu : EN and FR languages installed. 2 Menu's : main menu en (fixed language : en) and main menu fr (fixed ...
0
votes
1answer
110 views

Sidebar Menu like on Myspace (for each profile)

I have several content types. Bio, images, videos etc. for each user. Now i want to have sidebar menu like on Myspace profiles where the menu reacts only to user you are watching. Is there a module ...
0
votes
1answer
137 views

Render all items of the main menu on one page

i am building a overview page of my website. My Main Menu has the following structure: MenuItem1 submenuitem1 submenuitem2 submenuitemn MenuItem2 submenuitem1 submenuitem2 submenuitemn MenuItem3 ...
0
votes
0answers
48 views

Structure of main menu

I have HTML menu. With the following: <li><a href="#">cccc</a></li> <li><a href="#">aaaaaa</a></li> <li><a href="#">bbbb</a></li&...
0
votes
0answers
493 views

Nice Menus - Root links expanded by default - How to collapse?

This is my first time using Nice Menus with Drupal 7. I have created a test menu that contains four links. I have placed this menu in a custom region within the header of my site. When the page ...
0
votes
1answer
192 views

How to I get rid of “Error with menu entry… ” in recent log messages?

I have Taxonomy used to get a menu structure by using the module Taxonomy_menu. Since a couple of weeks I get "Error with menu entry "Activity" in menu "menu-products" in my "recent log messages" when ...
0
votes
2answers
904 views

Creating Primary Sub menu's programmatically

I want to display the latest 10 nodes of node type 'ABC' as a sub menu link under my primary menu. Are there any modules for Drupal 6 to help me achieve it. I have created a view which gives me a ...
0
votes
1answer
292 views

Menu list links of different languages of a Localized Menu are shown in all languages?

I have a menu which is set to Translate and Localize. Menu items with language will allow translations. Menu items without language will be localized. The in the menu I have several links in english ...
0
votes
1answer
259 views

How to implement menu in footer blcok

I need a (D7) block print the main menu in the footer; It's not clear to me how the pieces fit together: We implement block_info, block_view, a pre-process function and a template. function ...
0
votes
1answer
125 views

Panels, menus, and path in Drupal 6

I'm trying to work on a site that's using Panels to, among other things, create a sidebar navigation menu. It's working well on a page that exists in the menu tree structure: Primary links Info ...
0
votes
0answers
90 views

Navigation sub-menus

I'm using the "navigation" menu as my admin menu. I want to create a "report" menu link with sub-menu links for "report - content", "report - comments", "report - users". A view is generating those. ...
0
votes
1answer
896 views

Editing a footer menu in a theme

How can I edit a footer menu in theme like Bartik, currently its displaying the menu in vertical format and I want it in horizontal format. Any idea how I can go about editing this. e.g. current: Menu ...
0
votes
0answers
27 views

How do I get a list of primary links by language?

I have been digging different drupal 6 functions such as menu_primary_links(), menu_tree_page_data(), menu_tree(), menu_get_item() etc but I can't find how it is done. Does anybody have an idea? I ...
0
votes
1answer
124 views

Can I include a list of sub-menu pages in the content of the parent page?

I have a page that is the parent of a series of menu items, e.g. Projects, with some project pages as child items in that menu. I would like this parent page to automatically have the list of children ...
0
votes
1answer
41 views

Adding attribute to menu - page specific

Hi I know I can alter menu links classes/attributes using theme_menu_link() function. But from what I can see, there is no way to determine what current page is being rendered from within the function....
0
votes
0answers
8k views

Add a <a href> link outside each <li> in main menu

Right now I have images above each menu item (added in my CSS as background images assigned to a class in each list item) in my main menu. I would love to be able to have the image also as a link ...
0
votes
1answer
220 views

Creat new menu items link in menu like create new Content Type does

When create a new Content Type, several new menu links will created and show in the management menu, such as node/add/article and admin/structure/types/manage/article. Add content -- Article ...
0
votes
1answer
342 views

Show menu link as expanded when on node pages for a content type?

I need to show a menu link as expanded when you are on the node page of a certain content type. These nodes don't actually have menu link but are navigated to, through a menu link and taxonomy terms....
0
votes
1answer
545 views

Node Hierarchy and active menu trails

I'm trying to use Node Hierarchy module together with the Menu Block module to create blocks in different regions of my site. My problems is that when a child path is active, the parent path doesn't ...
0
votes
1answer
115 views

My tab links turned into /user/%/edit, node/%/edit, etc

Links on tabs turned into /user/%/edit, /user/%/contact, node/%/edit, admin/structure/types/%/fields, etc. Also, the links on Administration Menu module have the same issue. Here's what I did so far. ...
0
votes
1answer
211 views

referenced node in primary tabs

I am looking for a way to show a referenced node into the primary tabs menu. I created a content type "fact box" that is referenced to an article. Now i like to have the content type title of the ...
0
votes
1answer
118 views

Dynamic menu with latest Article in drupal7

I'm a bit new to Drupal environment. I'm trying to develop a demo site for CMS application. Now I'm facing a difficulty to create a dynamic menu for showing taxonomy-wise latest Article. Can I do it ...
0
votes
1answer
342 views

Return Table and Form in page callback

I have a problem returning table and form in page callback at the same time it only works if one of them only returned. function _table_maps(){ $query = db_select('maps','m'); $result = $query->...
0
votes
0answers
23 views

How can I block custom menu from edit and delete?

I have a menu import via Web Service from other Drupal site. I would like to use Menu API to import this menu but I must be sure that will be impossible to remove or edit the menu (even by site Admin)
0
votes
2answers
883 views

add pre-registered links to user menu via hook_menu

One step before being forced to using internationalization (i18n) module! I'am trying to add translatable Register and Login links to secondary menu via hook_menu in way which user module dose for ...
0
votes
0answers
394 views

Menu Icons + Omega

I'm using Menu Icons with Omega and, well, my menu icons are cut off above and below the line. I've done all the CSS stuff I can think of and nothing seems to help. When I look at the documentation ...
0
votes
0answers
125 views

Show Block on third level domain

I realise that the title probably makes no sense - and that's because I'm finding it quite hard to explain this. But I will try my best. I have a block that is set to only display on these pages ...
0
votes
0answers
232 views

node is appended after base url and before actual link

I am using drupal 7 In my home page when i hover any link say node/45 then there is right link like base_url/node/45 But after visiting any node i.e. when i go to node/45 page, on that page when ...
0
votes
0answers
469 views

Cannot edit my navigation menu

I cannot edit my navigation menu. I think this comes from upgrading from Drupal 6 to 7. I get this error message: URL: http://www.energyjustice.net/admin/structure/menu/manage/navigation ...
0
votes
2answers
215 views

Build context menu for news articles (sample image included)

I have a complex view that queries and presents a lot of news articles depending on year and month contextual filter arguments. Everything works fine so far. However, now I want to show kind of ...
0
votes
1answer
268 views

Pulling Breadcrumb items from the Menu Link text instead of Title field (D7)

Some of my pages are pulling text for the last breadcrumb item from the menu link text. The rest of my pages are pulling text for the last breadcrumb item from the Title field. What I want is for all ...
0
votes
1answer
487 views

Changing TABS into CONTEXTUAL LINKS

I'm making a module that changes the output from the tabs (View, Edit, ...) into contextual links. The name of my module is "testmodule" and the name of the theme I'm using is "Bartik". When I place ...
0
votes
1answer
95 views

Integrate ddmegamenu in drupal menu

There is a menu plug in called ddmegamenu http://www.dynamicdrive.com/dynamicindex1/ddmegamenu.htm I want to integrate in drupal 7 menu system. I don't know form where to begin i tried drupal ...
0
votes
1answer
249 views

Creating a menu based on cck field

I would like to build a custom menu structure based on cck fields. lets say I have 2 fields in which I will type the menu item. parent item = field_category child item= field_subcategory So in a ...
0
votes
1answer
73 views

How to force a theme to use a sitewide custom menu

Ok so Im coming from wordpress where I could just hook a menu into the header of every page and create my own custom menu. I'm trying to do the same with drupal but it's so confusing! Im building my ...
0
votes
1answer
1k views

How to adjust position of drop-down block in Nice-Menu?

I have inherited a site built in Drupal 6 that uses Nice-Menus for both the top and side nav bars. I've been tasked with modifying the current navigation and have run into issues adjusting both the ...