Closed (fixed)
Project:
Zen
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Apr 2008 at 16:37 UTC
Updated:
4 Oct 2008 at 17:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedSame 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?
Comment #2
johnalbinThis 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.
Comment #3
Anonymous (not verified) commentedJohn, 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.
Comment #4
johnalbinIt'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.
Comment #5
Anonymous (not verified) commentedGot it, thanks much for the help!
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
johnalbinIn #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.
Comment #8
johnalbinFixed.
http://drupal.org/cvs?commit=141281
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.