Hello,

I love this theme. Is there any way to get the child menus of the Primary Menu to show? It would be great to have a simple text line underneath.

Lisa

Comments

nickbits’s picture

Hi,

On my site a created a block to display just what you want. The code I used is as follows:

<?php

$links = menu_primary_links(2);

if ($links) {
$key = key($links);
$ekey = explode('-', $key);
$pid = $ekey[3];

$output = theme_menu_tree($pid);

return $output;

}

?>

I did not want to modify the source code on Drupal, but if you want the menu displayed under the tabs, edit the page.tpl.php file and change the following

 <?php 
            //see http://drupal.org/node/140491
           // print theme('links', $primary_links);
            print phptemplate_light_primarylinks($primary_links);
            ?>

To this:

 <?php 
            //see http://drupal.org/node/140491
           // print theme('links', $primary_links);
            print phptemplate_light_primarylinks($primary_links);
$links = menu_primary_links(2);

if ($links) {
$key = key($links);
$ekey = explode('-', $key);
$pid = $ekey[3];
print theme_menu_tree($pid);
}
            ?>

That should do it. I do not have access to my test set-up so cannot confirm this at present.

Nick

nickbits’s picture

Status: Active » Closed (fixed)
darumaki’s picture

What do the numbers 2 and 3 stand for in your code ?