I have copied page.tpl.php file from zen/templates to mytheme/templates.
Then I have copied the following code from footer to navigation

 print theme(array('links__system_secondary_menu', 'links'), $secondary_links,
          array(
            'id' => 'secondary-menu',
            'class' => 'links clearfix',
          ),
          array(
            'text' => t('Secondary menu'),
            'level' => 'h2',
            'class' => 'element-invisible',
          ));
   

Secondary links are only visible now.
But then the slogan is overwritten and a block in content top overrides the secondary menue.

Then I changed in layout-liquid.css the margin from 2.3em to 4.3em

#navigation {
float: left; /* LTR */
width: 100%;
margin-left: 0; /* LTR */
margin-right: -100%; /* LTR */ /* Negative value of #navigation's width + left margin. */
padding: 0; /* DO NOT CHANGE. Add padding or margin to #navigation .section. */
height: 4.3em; /* The navigation can have any arbritrary height. We picked one
that is the line-height plus 1em: 1.3 + 1 = 2.3
Set this to the same value as the margin-top below. */
}

.with-navigation #content,
.with-navigation .region-sidebar-first,
.with-navigation .region-sidebar-second {
margin-top: 4.3em; /* Set this to the same value as the navigation height above. */
}

It is working now, but was this a good and correct solution?

Comments

barraponto’s picture

what if you had just placed a secondary menu block on the navigation region?

baff’s picture

blocks in navigation area don't show, the same is true for header region

barraponto’s picture

of course they do. what version of zen are you running?
but you will need to change the navigation height and the top margin of content and sidebars.

akalata’s picture

Status: Active » Postponed (maintainer needs more info)
CJBrew’s picture

> of course they do. what version of zen are you running?
> but you will need to change the navigation height and the top margin of content and sidebars.

"of course they do"...
hmph. Mine don't either. But it seems Zen made the decision in their Page.tpl.php that the Footer is the correct place for the Secondary menu... So perhaps modifying the page template is the answer.

In general I've found Drupal incredibly frustrating when trying to get blocks (particularly menu blocks) to show in the place I ask it to. It tends to be that there's an odd menu item (like in the Themes menu) which explains why you couldn't see your Primary or Secondary menu block. And then, you find your Theme has overridden the Blocks too...

barraponto’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Steps I took to reproduce (working scenario):

I am running Drupal 6.22, Zen 6.x-2.1.
I have created a sub-theme using zen's drush command.
I have added an item to the secondary menu. (first time around, this frustrated me for a few minutes).
I have picked the secondary item block and put it to show up in the navigation region.

Result: http://ompldr.org/vYTdocQ

You will notice the Secondary Links title. It is the block title, the block itself is not showing because of Zen CSS (it expects the #navigation to be 2.3em tall). Here is a little CSS added to make it clearer:

http://ompldr.org/vYTdocg

I had to increase the top margin in layout-fixed.css, line 117. Then I had to increase the height in layout-fixed.css, line 104.

If it still doesn't work for you, please post detailed steps to reproduce the bug.

Ziepin’s picture

Assigned: Unassigned » Ziepin
Category: support » task
Status: Closed (cannot reproduce) » Patch (to be ported)

I had this same problem I edited the page.tpl.php file and took the secondary links out of the footer region and put them in the navigation region.

echoz’s picture

Assigned: Ziepin » Unassigned
Category: task » support
Status: Patch (to be ported) » Active
johnalbin’s picture

Status: Active » Closed (fixed)

closing old support issues