Menu

We are going to rewrite the Drupal menu system. The roadmap and phase one is in http://drupal.org/node/34755 .

Displaying current Link and its submenu in a block

How can I display the current menu item(link) and its submenu(children) in a block?

I tried looking at the theme_menu_item function but I don't really understand how to use it to do what I need..

Any suggestions??

2 comments

How can i get more logical/user friendly local tasks?

I personally think drupal has an extremely strange way of handling page menus.

If you go to pretty much any other user based website, the users account settings are available on any page, because account settings are a global function, but for some reason drupal puts the account settings on each users account page. With an argument in?? what?

It just seems amaturish to put the edit account link on the users account page rather than making the link accessible without an argument.

Login or register to post comments · Read more
Tom.Camp's picture

Funky menu issue on Term page

I am having an issue with the taxonomy/term/* pages and my menu and I figured that I would post here to see if anyone has any thoughts.

Here is what is going on; I am using the Primary Links and have a few items in the menu. When I go to a taxonomy/term page, certain items in the menu disappear. This only happens on the taxonomy/term/... pages. The pages that disappears are of the default content type Page and any content type Page that I add and a CCK content type and any of that type.

3 comments · Read more

Autolink Parent Menu to Submenu

I'm looking for a way to automatically have my parent menu item link the first submenu item in the list. currently, whenever my submenu's change, i have to update it's parent menu to point to the new first submenu in the dropdown. Any suggestions?

Login or register to post comments
karenbroes's picture

dropdown menu

Hi everyone!

My situation is the following:
I have an image (slices images next to eachother) in my header region. This image should be a menu. More exactly a dropdown menu, if I hover over an image it should show the menu boxes underneath it. And I'm not quit sure how to do this in drupal7. I have the CSS in my head but I can't figure out where to stick it too, the image for as for as I know doesn't have an id or class.

Login or register to post comments · Read more

How to use tokens in menus?

hi,

how can I use tokens like "%user" when creating menu elements at "/admin/build/menu-customize/navigation/add"?

What I try to do is this:

  • At "admin/build/menu/add" I created a new menu called "Top Navigation" (top-navigation).
  • This menu should contain links to user profile pages, like:
    -- Profile Homepage -> user/[USERNAME]
    -- Edit your profile -> user/[UID]/edit
    -- List your friends -> user/[UID]/friends
    -- List your content -> user/[UID]/content
    -- etc.
4 comments · Read more

How to create special dropdown menus?

hi,

how can I build dropdown menus like on this page -> http://www.pampers.co.uk/en_GB/home ?

Roll over "Pregnancy", "New Baby", "Baby" etc to see what I mean.

thanks for any help.

best regards.

Login or register to post comments

Menu in custom module disappears

Hi Guys,

I'm developing a custom module for some privacy stuff. My module provides a new page under "user/[UID]/edit/privacy".

<?php
/**
* Implementation of hook_menu()
*/
function MY_MODULE_menu() {

$items['user/%user/edit/privacy'] = array(
'title' => 'Privacy',
'page callback' => 'drupal_get_form',
'page arguments' => array('MY_MODULE_privacy_settings'),
'access arguments' => array('administer site configuration'),
'type' => MENU_LOCAL_TASK,
'weight' => 100,
'file' => 'MY_MODULE_privacy.admin.inc'

2 comments · Read more · 2 attachments
shushu's picture

Adding user name to menu (kind like logitoboggan block, or using Token...)

Sometimes things that looks simple to do gets me into troubles.

In this case, the combination of Acquia Marina theme, logintoboggan block and secondary links.

Acquia Marina has the secondary links "hard coded" into the page.tpl.php, inside a place which is not a region. This make it "impossible" (without changing page.tpl.php) to add blocks to it.

Meanwhile, all I want is to give a nice "Hello $user->name | Log out" as part of the secondary links. Logintoboggan is a great module that gives this block, but I can't easily put it there.

Login or register to post comments · Read more · 1 attachment

Controlling active/active-trail with duplicate menu items

I'm developing a site that requires some menu items to occur in two different places within the primary links:

Section A
-- Introduction
-- Testimonials

Section B
-- Introduction
-- Testimonials

Testimonials
-- Section A
-- Section B

Login or register to post comments · Read more

menu_get_active_trail() not working correctly?

Hi All.

I just joined this group. I've encountered a problem with menu_get_active_trail(). I may be going about what I am trying to do incorrectly. I'll take any mid-course corrections that you all have to offer.

First the problem.

I have a nested menu structure that looks something like this:

Home
- Visit
-- Tickets & Admission
-- Calendar of Events
-- Directions & Parking
-- Plan an Event
-- Dining & Shopping
-- Hotel Packages
- Get Involved
- Education & Activities
- Multimedia
- Research & Collections
- Science & Exhibits

1 comment · Read more
mazya's picture

Drupal Drop-menu module

Hi, enyone. I've got some software to generate different types of menus (Sothink DHTML Menu, not an ad). So, now I can create any type of menu, but i can't connect this menu with my drupal site. I.e. when i'm creating section in admin page, i need to change menu code dy mysefl, but i vonna to drupal change menu code automaticly. How can i connect menui code with drupal, or how to create such module that will do this. I'll be glad if anyone help me.

Sorry for my bed english.

Login or register to post comments
guldoe's picture

Manage menu options

I would like some users can add pages and manage menu. When users add a page can see all menus( navigation, primary links , secondary links) ¿is possible hack menu and it only shows primary and secondary links.?

I not found a module that could do that, ¿may i change this by code?

Thz

1 comment
cuxi's picture

I can do with drupal

. Hi guy, I have a question.
I create a few menu item link. I use a few other website on internet put see infomation. When i click link menu item. i want load data from other website on internet to content (body) in drupal website for me ( see infomation other website on website for me. No open a window)
Can do it with drupal?

1 comment

A little history

The menu system has a very old history in Drupal. The system as we knew it, began its life in 4.5 (2004 September, actually) when JonBob added back menu caching. As not all menu items were cacheable some code defined parts were in cache, some parts were not. To make it customizable, again some information was kept in a normalized database table when menu module was enabled. The complex structure kept every menu link for every page load. This was a performance and a memory problem. Also, the primary index was the path.

Read more

6.x menu system update

Here's a status report on the menu-related issues for 6.x that I'm aware of - please add to/update this list:

RTBC in the queue:

Adding new node link with the same path will hide other links to the same node
http://drupal.org/node/179578

Tabs rendering broken if non-existing item is in path
http://drupal.org/node/179474

arbitrary number of arguments in router path are not supported
http://drupal.org/node/177488

patch code needs review:

Ugly breadcrumbs
http://drupal.org/node/176748

Inconsistent titles and breadcrumbs at various levels in aggregator

Read more

The paths in Drupal core

Path Status
dfletcher
admin This page awaits rewrite
admin/build This page awaits rewrite
admin/build/block OK
admin/build/block/add OK
admin/build/block/configure ok
admin/build/block/delete ok
admin/build/block/list ok
admin/build/block/list/bluemarine ok
admin/build/block/list/chameleon ok
admin/build/block/list/garland ok
admin/build/block/list/marvin ok
admin/build/block/list/minnelli ok
admin/build/block/list/pushbutton ok
admin/build/contact OK
admin/build/contact/add ok
admin/build/contact/delete ok
Read more
Syndicate content