New to drupal and trying to order blocks around the Zen theme - running drupal 5.7.

With that being said... the primary menu shows up twice. Once is across the top and when in block editing mode, it's labeled the "navigation bar." I can't find settings anywhere to move or remove this navigation bar. Is it there as part of the theme (meaning only change via template) or am I missing an option screen somewhere?

Files: 
CommentFileSizeAuthor
#1 zen-navbar-output.jpg16.86 KBzacamjo
#1 zen-navbar-css.jpg56.16 KBzacamjo

Comments

zacamjo’s picture

StatusFileSize
new56.16 KB
new16.86 KB

Same here, running Drupal 5.7 with Zen 5.x-1.1. Assigned the "Primary Links" block to the navbar, now items added to "Primary Links" appear in duplicate. One appears under:

(div id) "navbar"
(div id) "navbar-inner"
(div id) "primary"
(ul class) "links"
(li class) "first last menu-1-1-2"

And the duplicate instance appears under:

(div id) "navbar"
(div id) "navbar-inner"
(div id) "block-menu-2"
(div id) "block-inner"
(div class) "content"
(ul class) "menu"
(li class) "leaf"

Why is a second (duplicate) instance appearing, and what can be done to mask or remove one?

JohnAlbin’s picture

Status:Active» Fixed

This is actually an annoying limitation of Drupal 5 themes. It has been fixed in Drupal 6; you can uncheck the "toggle display of Primary links" checkbox.

Unfortunately, there's no way to backport that feature to Zen for D5.

The best you can do is set the $vars['primary_links'] and $vars['secondary_links'] variables to '' in your SUBTHEME_preprocess_page() function.

<?php
function SUBTHEME_preprocess_page(&$vars) {
 
$vars['primary_links'] = $vars['secondary_links'] = ''; // Disable the theme's default navigation links.
}
?>
zacamjo’s picture

John, thanks for the tip. I'm sorry I have to ask but can you point out where the "SUBTHEME_preprocess_page() function" is located? I've literally opened each php file I could find in Drupal 5.7 as well as the Zen theme, but didn't see where this was to be edited/added.

JohnAlbin’s picture

It's in your sub-theme's template.php file. And when I said "SUBTHEME_preprocess_page", I meant that "SUBTHEME" should be whatever your sub-theme is named. For example, if you subtheme was called "foo", you need to edit the foo_preprocess_page function.

zacamjo’s picture

Got it, thanks much for the help!

Anonymous’s picture

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

JohnAlbin’s picture

Title:navigation bar» Add options to toggle display of primary and secondary
Version:5.x-1.1» 5.x-1.x-dev
Component:Miscellaneous» Code
Category:support» feature
Status:Closed (fixed)» Active

In #2 I said that you can't backport the D6 feature of adding a "primary links" and "secondary links" to the list of items to toggle on admin/build/themes/zen page. Which is true.

But maybe I could just add these 2 checkboxes onto the Zen settings fieldset at the bottom of that page via the custom theme settings. The interface would be inconsistent, but at least the functionality would be there.

JohnAlbin’s picture

Title:Add options to toggle display of primary and secondary » Add options to toggle display of primary and secondary links
Status:Active» Fixed
Anonymous’s picture

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.