First of all, I am new to Drupal, as of last week.

So my boss wanted me to install the Ad_Novus theme on the site I'm working on, and I have done so and made some customizations, however he really wants the navigation at the very top to be the type that you mouseover and get dropdown secondary options. I created all the primary links and then child links underneath for a few of primary links, but i have NO IDEA how to do the mouseover dropdowns. Can anyone help?

Thanks!

Comments

mtsanford’s picture

I had success with the nice menus module. I basically ended up moving nearly all my menu items to one big newly created menu called 'navigation bar menu' at admin/build/menus, arranging it as I liked, and then pointed nice menus at that menu (at admin/build/block/configure/nice_menus/1)

Result looks like this:

http://i279.photobucket.com/albums/kk123/blogpost328/nice-menu.png

Careful though, once you've moved the menu items to your nice menu, you have 'customized' them, and they are delinked from the module that created the menu item in the first place. So if you, say, change the description of the page content type (e.g. at admin/content/node-type/page) , that changed description will not be reflected in node/add until you 'reset' the menu item, and move it back to the menu you've created for nice menus. It took me quite a while to figure out why this was happening, so hopefully this helps someone else.

Hope this helps.

dozens’s picture

Nice menus worked! But I'm really needing some additional help with the CSS. I've had to put the menu in my header area and while I'm sure I
I'll figure out how to style the colors and such, can you help me with the positioning?

My theme is a centered layout that is not fixed, however the NiceMenu is fixed in the upper-left-hand corner. Is there any way I can put it at the top of the content and have it move with said content when the browser width is adjusted?

mtsanford’s picture

I've got a theme region called "content-top" that sits above the main content. (I'm using zen). You'll probably want something like that, and put your nice menu block there. From my page.tpl.php:

        <?php if ($content_top): ?>
          <div id="content-top" class="region region-content_top">
            <?php print $content_top; ?>
          </div> <!-- /#content-top -->
        <?php endif; ?>

        <?php if ($breadcrumb || $title || $tabs || $help || $messages): ?>
          <div id="content-header">
            <?php print $breadcrumb; ?>
            <?php if ($title): ?>
              <h1 class="title"><?php print $title; ?></h1>
            <?php endif; ?>
            <?php print $messages; ?>
            <?php if ($tabs): ?>
              <div class="tabs"><?php print $tabs; ?></div>
            <?php endif; ?>
            <?php print $help; ?>
          </div> <!-- /#content-header -->
        <?php endif; ?>

        <div id="content-area">
          <?php print $content; ?>
        </div>

It's pretty easy to add a region I think. Just switch to a different theme temporarily. Then edit the .info file, add a new region

regions[content_top]    = content top

And then create the section in your page.tpl.php, like what I had shown above, then switch back to your theme and move the menu block there.

I didn't have to mess around with nice-menus CSS at all I don't think.

Something like this would move the menu around to wherever you want though.

#block-nice_menus-1 {
position:relative;
top:50px;
right:200px;
}

dozens’s picture

thank you for the info! so of course i would really prefer the simple css solution you mentioned, however I still need a little help.

I added the code you mentioned and while I can move the menu around, it's position is still fixed and does not move with the rest of the content when the window is resized. It really looks out of place when the rest of the content is centered.

Also, whenever I position the menu somewhere to the right a little then it subsequently widens the browser window, creating a scroll bar at the bottom even though all the content is on-screen.

dozens’s picture

bump?

KorianDHer’s picture

I have the same problem...
Somebody?