Hi,

now I have a primary link and secondary link as header menu and footer menu respectively. I need something working like a sub primary. it's like that sub_link would display below primary links when I click a specific item in primary links.

How can I implement it?

I have try to make sub link as child link of primary links, but it doesn't work.

Thanks!

Comments

zhangyingda’s picture

To create a region in Drupal 6:

In your theme's '.info' file, you'll need to define your new region. Put something like this:

regions[name_of_new_region] = name of new region
code hosted by snipt.net

Be sure to replace 'name_of_theme' with the name of your theme, and 'name_of_new_region' with the name of your new region.

Outputting content of the new region

The key of the array item (or value in between brackets for Drupal 6) will be used as the variable name in your theme files, like '$name_of_new_region'.

The value of the array item (or value to the right of the equals sign for Drupal 6) will be used as the title of the region on the '/admin/build/block' page.

In your page.tpl.php file, output the content of the region like so:

<? if ($name_of_new_region) print $name_of_new_region;
code hosted by snipt.net

Then, head over to '/admin/build/block' and set the 'Primary links' block to the region you just created.

Done!