0

I have a website in Drupal, and let's say that we have a main menu and a secondary menu:

Main Menu Item 1
     Secondary Menu Item 1.1
     Secondary Menu Item 1.2
Main Menu Item 2
     Secondary Menu Item 2.1
     Secondary Menu Item 2.2
     Secondary Menu Item 2.3
     Secondary Menu Item 2.4

What I want to do is to disable the secondary menu just for the 2nd main menu. So, when the user is, for example, over the item 1, the items 1.1 and 1.2 appear, but when he is over the item 2, the items 2.1, 2.2, 2.3 and 2.4 do not appear. Is there any way that I can do that on Drupal?

Thanks, George


Edit 1: I use Drupal 7.19 and I don't use any module for menus, just the built-in ones.


Edit 2: Code

<div id="primary">
    <div id="primary-inner" class="clearfix">
        <h2 class="element-invisible">Main menu</h2>
        <ul class="links inline main-menu">
            <li class="menu-424 active-trail active"><a href="..." class="active-trail active">About Us</a></li>
            <li class="menu-549"><a href="...">News/Events</a></li>
            <li class="menu-411"><a href="...">Projects</a></li>
            <li class="menu-429 last"><a href="...">Getting Involved</a></li>
        </ul>
    </div>
</div> <!-- /#primary -->

<div id="secondary">
    <div id="secondary-inner">
        <h2 class="element-invisible">Secondary menu</h2>
        <ul class="links inline secondary-menu">
            <li class="menu-425 first"><a href="...">People</a></li>
            <li class="menu-484"><a href="...">Our Partners</a></li>
            <li class="menu-386 last"><a href="...">Our Groups</a></li>
        </ul>      
    </div>
</div> <!-- /#secondary-inner, /#secondary -->
4

1 回答 1

1

为什么不从二级菜单中删除这些项目,然后在 admin/structure/menu/<menu-name>

于 2013-04-28T21:00:35.403 回答