Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi
How to converting $primary_links div into a block/region?
<?php if (isset($primary_links)) : ?>
<?php echo theme('links', $primary_links, array('class' => 'links primary-links')) ?>
<?php endif; ?>
the I can use Nice Menus (http://drupal.org/project/nice_menus) to have this menu links in drop-menu feature easily.
I wonder if there is another way to have drop menu feature for primary links in this theme?
Thanks.
Babs
Comments
Comment #1
Sophia CreditAttribution: Sophia commentedIf you are using the nice menus module, just replace
in your page.tpl.php with
That's all
Comment #2
bgogoi CreditAttribution: bgogoi commentedHi Sophia:
Thanks for the tip. But it was I think applicable for d5. for my D6, installation, I did the fllowing:
The instructions are at: Theme Functions in 6.x
:)
Comment #3
restyler CreditAttribution: restyler commentedYou can also render any block to specific position in template (not region) by using the code below:
Comment #4
markconroy CreditAttribution: markconroy commentedWhat code would you need to do the same for DHTML Menus (using dhtml menu module). I'd prefer to use a scrolling dhtml drop down than the Nice Menus one?
Thanks,
Mark C.