Hi, I basically use the beginning theme: http://drupal.org/project/beginning
I have the block "primary links" activated in the left sidebar. In admin > menues > settings I have selected "primary links" as my default menu for content and also as the source for secondary links. It works fine in the primary links block in the left sidebar. It shows:

Main 1 (selected)
--- SUB 1
--- SUB 2
--- SUB 3
Main 2
Main 3

As the main-links already appear in the header-navigation I don't want them to appear again in the left sidebar. I only need the sub-links of the selected main-link. What I thought is that this is what the block "secondary links" does. But if I activate this block it doesn't show up at all...

So I wanted to change the behaviour of the primary-links-block by overriding the function used for displaying the primary-links-menu. But obviously I'm not smart enough to understand which function I do have to override. I tried "phptemplate_menu_primary_links", "phptemplate_primary_links" and "phptemplate_menu", they all don't change anything. Then I tried "phptemplate_links" but it changes all the links within the templates (what I actually expected).

Anybody an idea what to do?

Cheers,
Chris

Comments

Christoph Schmid’s picture

Nobody has an idea? Or was my post confusing? I just thought of something logical like for example http://www.ciba.com/ - first level nav in the header and depending on the selected first level item the second level nav in the left sidebar. Am I on the wrong track if I'm looking for a primary-links-function to override?

Kind regards,
Chris
-------------------------
www.christophschmid.com

zfostock2’s picture

Hi

I am fairly new to drupal but have recently been in the same situation as you. I used the garland/Minnelli-theme where the secondary links aren't nested in the primary links. In my case I set: "Primary links > Primary links" and "Secondary links > Primary links"; this implies that the child of the primary link is shown as a secondary link, i.e. in the secondary links menu. Once I did this it was just for me to edit the page.tpl.php file and move the $secondary-links to the correct div, in the left sidebar in my case.

So, if all else fails, try the same procedure using the mentioned themes.