Questions tagged [drupal-navigation]

Use it for questions about navigation menus used in a Drupal site, including the drop-down ones created with or without JavaScript.

For questions about hook_menu() or Drupal 8 routes, use instead.

52 questions
7
votes
3 answers

Why aren't my drupal 7 submenu's showing?

I can't seem to get my sub-menus to display. I've gone to: Home » Administration » Structure » Menus Then, I've edited the parent menu and checked the tickbox that says "Show as expanded" - but still nothing. The code on my page.tpl.php page for the…
Nick
  • 715
  • 2
  • 7
  • 10
6
votes
3 answers

Drupal's Bootstrap/Dispatch/Routing Flow

Assuming the minimal module install (to keep things simple), what are the core "responsibilities" of the two top level functions in Drupal's index.php? drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); menu_execute_active_handler(); I'm trying to…
Alana Storm
  • 164,128
  • 91
  • 395
  • 599
5
votes
7 answers

How do I limit access to menu by role in Drupal?

I'm building a Drupal site, and have added two custom menus to give two different groups of management links (some people will see one menu or the other, some will see both, and anonymous/low-level users will see neither). The problem is, at the…
HorusKol
  • 8,375
  • 10
  • 51
  • 92
3
votes
1 answer

Drupal 7: How to add translated nodes to the menu system

Using the Locale and Internationalization (i18n) modules I've setup a multilingual site and added some content nodes, with translations, to the main menu. The menu items for the translated nodes disappear when changing the site's language. I…
Dylan Spencer James
  • 505
  • 1
  • 9
  • 23
3
votes
2 answers

Drupal 7 adding custom menus to pages

I have been developing with Drupal 7 for the past 4 months now, and I can't seem to find a straight answer as to how to add more menus on my pages. I understand the whole system_main_menu and system_secondary_menu, but how in the world can I add…
Aaron Olin
  • 349
  • 2
  • 7
2
votes
2 answers

theme_menu_item() is not working

I have a Drupal theme called wellington located in \sites\all\themes\wellington. I wish to override the menu_item function and followed the instructions at http://drupal.org/node/310356. I want to add a class to the li as described. I have tried…
Ed Henderson
  • 35
  • 1
  • 8
2
votes
1 answer

Drupal 7: Make a custom module create a menu item in the user menu

Just like the title says. If you add an item to the hook_menu function and declare it of type 'MENU_NORMAL_ITEM' it shows up in the navigation menu. Is there a way to create an item there that shows up in the user menu?
LoneWolfPR
  • 3,978
  • 12
  • 48
  • 84
2
votes
2 answers

Drupal 7 - Appending class names to a menu block

I've been stuck on how to manipulate in the template file what a menu block outputs in it's html. The regular < ul class="menu" > with li links is fine and I don't need to completely gut this html that drupal creates for all menus but I want to…
cgv
  • 118
  • 1
  • 10
2
votes
1 answer

Drupal - Toggle Visibility of Menu Item Via Custom Permissions

I am currently using Drupal 7 and I am writing a custom code such that users with a certain permission("use business dashboard") should see a menu item in their main menu. The problem is that only I(admin) can see this menu item. I have been able to…
Eric
  • 640
  • 12
  • 32
1
vote
2 answers

How to build a menu programmatically (Manually) with Drupal?

I have a menu in Drupal in the following structure: -Gallery --Gallery Item 1 --Gallery Item 2 --Gallery Item 3 --Gallery Item 4 -Videos --Video Item 1 --Video Item 2 --Video Item 3 The Gallery and the Video items in the menu should be loaded…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
1
vote
2 answers

Drupal6: How to programmatically style a block?

In Drupal6, I basically have a block (a hierarchical menu structure) that turns out like this in HTML:
1
vote
1 answer

Drupal: how to add menu link to password change?

Do You have any idea how to easily add a menu link "Change Your password" that would lead to Edit Profile page? I can programmatically add it, but I hoped that in the Admin Panel I could add a link, like [drupal]/user/edit that would redirect me to…
Michał Pękała
  • 2,359
  • 5
  • 22
  • 32
1
vote
0 answers

Theming menu block module drupal, get rid of default block style

After lots of trying, i finally managed to find out how to make my menus active in drupal 7, using the drupal menu block module. There is one nasty thing which i can't find just a simple solution for, a default block style is still surrounding my…
Esocoder
  • 1,032
  • 1
  • 19
  • 40
1
vote
0 answers

Drupal 6 - Menu disappearing issue

I am using Drupal6. I have defined a menu in Site Building -> Menus called "sidebar link". Then I my code, I build that menu like "menu_tree('menu-sidebar-links');". If I am on main page or sub page then I want that menu to expand. It…
1
vote
1 answer

Different menus based on current node taxonomy

I was wondering if anyone could give me some insight on the best way to structure my site for this situation. A little bit of background: I am working on a large enterprise site with a lot of sub sections; thus a lot of menus. We are using the page…
1
2 3 4