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 6067013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:33:44+00:00 2026-05-23T09:33:44+00:00

I have a Drupal 6.22 site, with primary links like this (using Nice Menus):

  • 0

I have a Drupal 6.22 site, with primary links like this (using Nice Menus):

Section 1
- Foo
- Bar
Section 2
- Page A
(...)

My client asked this: If a user clicks on “Section 1”, the “Foo” page is shown. In other words, when clicking on any “Section” the user will be redirected to the first child of that section.

At first, I modified the menu item “Section 1” path to “section1/foo”, but the breadcrumb in the Foo page (I’m using Menu Breadcrumbs) is showing:

Home > Section 1

I want the breadcrumb to show this:

Home > Section 1 > Foo

So that didn’t work, so I installed the Redirect Module, defined a “section1 -> section1/foo” redirect, but I can’t create menu items pointing to “section1” (it isn’t an alias).

Any ideas? Thanks in advance.

  • 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-23T09:33:45+00:00Added an answer on May 23, 2026 at 9:33 am

    You need to edit the menu array directly. Open up template.php from the current theme you’re using and add this inside the function themename_preprocess_page(&$vars):

    print_r($vars[‘primary_links’]);exit();

    And then refresh any page on the site and you’ll see a print out of the primary_links array. It looks something like this:

    Array (
    [menu-640 active-trail] => Array (
    [attributes] => Array (
    [title] => A Page Title
    )
    [href] => node/20
    [title] => A Page Link Title
    )
    )

    You can alter the [href] by setting it to your preferred value. You’ll need to get creative with a foreach($vars[‘primary_links’]) loop to get children and alter their parents appropriately, but it shouldn’t be too difficult.

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

Sidebar

Related Questions

On my Drupal site, I have made a Users page using the Views module,
I have a web site. This is a drupal site using PostgreSQL database.In this
i would like to have a block on my drupal site(latest version) that displays
I would like to have external proofreaders to work directly inside my Drupal site.
I have an old drupal site that I'd like to upgrade, but I need
I have a Drupal site with user logins. Embedded within this site is a
I have a Drupal site using jQuery 1.3, so that unfortunately I cannot use
We have a drupal site and we wish to export data from this site
I have a Drupal site, site.com , and our client has a campaign that
i want to have another drupal-site in a subdirectory using multisites. Assuming I have

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.