Hi,

I'm using the Garland theme on Drupal 7. Is it possible to change the top links to be something else than the content of the main menu? On my site I'd want the main menu to be in the left layout block, and the top links point to external parties. Is this possible while still having the left menu be the main menu (since it's much easier to add links and work with the main menu elsewhere)?

I took a quick look at the code, and it seems that it's hard-coded to use the main menu. Ideally it should be configurable what menu is presented in the top links.

The code I looked at was in garland_preprocess_page in template.php:

if (isset($vars['main_menu'])) {
$vars['primary_nav'] = theme('links__system_main_menu', array(
'links' => $vars['main_menu'],
'attributes' => array(
'class' => array('links', 'inline', 'main-menu'),
),
'heading' => array(
'text' => t('Main menu'),
'level' => 'h2',
'class' => array('element-invisible'),
)
));
}
else {
$vars['primary_nav'] = FALSE;
}

How difficult would it be to change that to refer to some other menu?

Comments

klonos’s picture

Project: Garland » Drupal core
Version: 7.x-1.x-dev » 7.x-dev
Component: User interface » Garland theme

...in D7 the Garland theme is in core. So, switching to the appropriate issue queue. Perhaps you want to check if your question's been asked (and answered before) before.