Secondary links showing up in header

breastfeedingmo... - July 2, 2009 - 21:52

I configured my secondary links block to show up in my footer. However, the links appear in both my header and footer. When I disable the block, the footer disappears, but the secondary links stay in the header. I have my blog and forum configured to show up in the header but that's it. I haven't even configured at primary links block at this point. What am I doing wrong?

PS: I tried to find this in the handbooks and could not. Perhaps it's too specific of a question.

Thanks!

Okay, this may have fixed it.

breastfeedingmo... - July 2, 2009 - 22:14

Because I am inherently stubborn, I kept playing with my site after posting this question. As I mentioned, I have yet to find resolution in the handbooks. At any rate, I was able to remove the links from my header but keep them in the footer, as configured in my block.

I saw this question in another post and it was unresolved, so I thought I would post my solution. If this is wrong, someone please correct me so I don't mess anyone else up though.

Anyway, here's what I did: Administer>Themes>(my theme)>configure> Then, I scrolled down to Toggle display. I unchecked secondary links.

Depends on the theme

duggoff@drupal.org - July 3, 2009 - 00:37

The reason stuff like this isn't in the handbook is because it's different for every theme. If you want to see what's going on under the hood, open up page.tpl.php in a code editor and look for code that looks something like this:

//From the Garland theme in Drupal 5

<?php if (isset($primary_links)) : ?>
<?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
<?php endif; ?>
<?php if (isset($secondary_links)) : ?>
<?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
<?php endif; ?>

In your case, turning off secondary links has the effect of causing the if (isset($secondary_links)) : test to return FALSE, so the secondary links don't get printed to the page. The code to do this in the theme you're using may not be exactly like this, but it will serve the same purpose.

Hope that's helpful,

Doug Gough
ImageX Media

 
 

Drupal is a registered trademark of Dries Buytaert.