Hello.
Im a very new Drupal User, so please forgive me if this is obvious:
How can I get Dropdown menu to work?
I would also like what appears in the dropdown to appear in the sidebar (dependent on what page you are on)
Any help is greaty appreciated!
Paul

Comments

scooper@drupal.org’s picture

If you create your site's Secondary Menu they become the main buttons for the drop-downs. Select "Secondary Menu" as the Parent item for each of these. Then for the drop-down under each main button, add a menu item and select the main button's title as the Parent item. Use the "weight" to control the order in the drop-down.

To have the sidebar show the menu section you are in is a bit trickier. I did this by adding menus with duplicate names (not under Secondary Menu) and then placing each menu in a block, and then putting the block in the left sidebar. Then I assigned the pages for which each block should appear.

sejtraav’s picture

Thank You for the reply
Could you try to explain a bit more how to create teh secondary menu and drop down?
thanks,
paul

scooper@drupal.org’s picture

If you create a secondary menu with menu items they will automatically populate your drop-downs with this theme. So you just need to know how to create standard Drupal menus. I can't really provide a tutorial here, but you could look for a basic Drupal book such as Building Web Sites with Drupal by David Mercer to walk you through creating menus - here's a link to the book: http://www.packtpub.com/drupal/book/mid/121207frupgr. Or, an online tutorial but it's based on 4.7; it could still get you started I hope:
http://drupal.org/node/37375. You can download a Drupal 5 getting started document here: http://drupal.org/getting-started/5 .

Once you understand how to create menus in Drupal, create the Secondary menu and add menu items to each parent item and your drop-down menus will automatically appear.

sejtraav’s picture

I have created a menu with sublevels, and defined it as the "Menu containing secondary links" the menu appears in the correct area, but when hovering over the menu buttons, no drop-down appears.

scooper@drupal.org’s picture

I can't guess why it wouldn't work for you. If you want to give me a URL and a Drupal account where I can log in and see how the menus were created I could take a look. You can email me directly using the email in my Drupal profile.

e-roldan’s picture

Hi Sharon, I've tried your tip about the menu in the side bar, I've created the menus but maybe you were talking about other menu style than the one I've imagined, so I'd like to ask you if you were talking about the the block called "Navigation Title" in the left side bar of this demo site of Multiflex:

http://www.opendesigns.org/preview/?template=45

That menu style is which I want in my site, do you know how to configure it?

Thanks

Enrique

scooper@drupal.org’s picture

I just created additional menus and enabled them in blocks in the left
sidebar. They do look like the "Navigation Title" block, by default. Here's an example of a page with
a menu in the side bar using this theme: http://www.bnaikeshet.org/community

I didn't use any feature of the theme, just created redundant menus
(repeating the menus I put in the Secondary menu) and enabled the menu blocks that you get automatically when you create a menu, selecting the left sidebar, and indicated which pages the blocks should appear on. All manual work. The theme makes the block look the way it does.

Does that answer your question?

e-roldan’s picture

Thanks, that's a good idea, I'll try to do in this way, but it wasn't exactly my original idea; I'd like to know if is posible to have the same appereance that the "Navigation Title" block, in the link that I've sent you, I mean, How can I get the same effect in the menus when I pass the mouse over each menu option, It looks like the java script drop down menu (in colors and form); I don't know if it is posiblle or if I have to instal l a java script module.

Thanks in advance

Enrique

scooper@drupal.org’s picture

I see what you mean - it is a nice affect. As far as I know, it's not provided in the Drupal version of this template. That affect is controlled by CSS in a style sheet - you don't need JavaScript. I'm not a Drupal expert, but it looks to me like you would need to override the link style and link hover style in the menu block, in a style sheet. You can view the styles with a tool like Firebug - a free extension to the Firefox browser, so you can find what you need to override.

You might want to subscribe to the general support Drupal listserv where more advanced folks can help, and you could email the developer of this theme directly.

e-roldan’s picture

Hi Sharon, I have created the menus and all works as you told me, but now I have a problem that I couldn't solve, everything works fine in Firefox, IE7 but the drop down menu doesn't work in IE6, you can try in my site:

http://148.204.19.24/esime

do you know how to solve this problem?, I've proved your site in IE6 and the menus drop down perfectly, but the mine not.

Thanks

scooper@drupal.org’s picture

You need a patch for the menus to work on IE 6 - see all the discussion here: http://drupal.org/node/131967

You can also see exactly what I did here: http://drupal.org/node/131967#comment-691377

I hope that helps.

decibel.places’s picture

I have been using the Nice Menus module http://drupal.org/project/nice_menus (which can be configured with it's own css) for sidebar expanding menus

You can see a pretty much default Nice Menu at http://netsperience.org and a themed one at http://4m.netsperience.org (sidebar menu) including custom leaf images. The top menu is just a themed Primary links, the sidebar is a Nice Menu displaying the Secondary links menu.

Also the simplemenu module http://drupal.org/project/simplemenu is a good drop-down solution, again configurable in css

cakka’s picture

Title: Drop Down Menu » Drop Down Menu for Secondary Links

@decibel.places
Hi, how do you do that ? I just can success for Primary Links i don't know why Secondary Links is not run .... Can you explain that ? Thanks

I have try this on page.tpl.php for Secondary Links but it wasn't run :p

<?php
      print theme('nice_menu_secondary_links');
?> 
decibel.places’s picture

cakka,

Here is the answer to your question (I hope)

You need to first create the Secondary Links menu

Then, in the blocks settings page, click on configure for one of the Nice Menus blocks and you will see a drop-down menu "Source Menu Tree:" so select Secondary Links (or any other menu tree that exists).

When theming css, I use Firefox with the Firebug add-on to determine the selector(s) and the Web Developer add-on for wysiwyg css editing.

Unfortunately, the 4M site has developed some issues... It's been dormant for a while, hmmm