Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6890995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:21:12+00:00 2026-05-27T06:21:12+00:00

In Drupal 7 I want to have a site that has distinct sections with

  • 0

In Drupal 7 I want to have a site that has distinct sections with a left navigation menu that switches based upon the page you are on. For example I want to have a top level nav that takes you to a section, and then in that section the menu is unique for it. I’m assuming I have to create a theme function in my template.php file to handle this. Can someone give me an idea of how to start coding this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:21:12+00:00Added an answer on May 27, 2026 at 6:21 am

    I’m not 100% sure I follow you but if I do then you could do this with the Menu Block module – http://drupal.org/project/menu_block

    If you’re talking about levels:

    If you’ve got a menu with multiple levels but only want to show say the 2nd level on pages where the parent item has a 2nd level then you go to structure -> blocks -> new menu block and the select the menu you want, what menu level to start the menu from and then add it where you want as a regular block.

    An example is:

        <ul class="menu">
           <li>Menu item 1</li> 
           <li>Menu item 2</li> 
              <ul class="menu"> 
                 <li>Menu item</li> 
                 <li>Menu item</li> 
              </ul> 
           <li>Menu item 3</li> 
           <li>Menu item 4</li> 
           <li>Menu item 5</li> 
        </ul>
    

    Your main menu will show just menu items at level one.

    Your menu block will be set to just start from level two, so if you were on Menu item 2’s page, your menu block would display the second level menu items.

    If you’re not talking about levels:

    You can make separate menu blocks and then set them to only appear on certain pages by going to the block’s visibility settings, then typing the node alias of the page you want it to appear on and select “Only the listed pages” from the radio buttons.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a site using drupal 6.I want to show primary menu items only
I would like to have sections of a site so the top menu is
I´m struggling with comments. I have a site that has a commenting system, and
I am probably asking a noob question... however: I have a Drupal site that
I have a Drupal site where I want to allow users to add their
i have a drupal site with many users. I want to add newsletter checkbox
We have a website that we want to provide web based API access to
I have a Drupal site in production. The site's large enough that I don't
I have added a message box to a drupal site.I got that massage box
I have a drupal 7 site and want to customize the comment form to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.