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

I have a web site. This is a drupal site using PostgreSQL database.In this
I am using a drupal site.here is the code I have written in client
I have my Drupal site here so far: selkirk.treethink.net Each Primary Link at the
I have a Drupal site with user logins. Embedded within this site is a
i have several moderator roles in my drupal site. the users with this roles
I have Drupal 5 site where a button is clicked and it calls a
I am finishing up a Drupal site and I have attached a word document
I have a Drupal module page where I am populating a form with a
I have the occasion to produce Drupal web sites using development, staging, and production
I have a Flash application that is hosted from within a Drupal page. Some

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.