take menu out of the block

-Shaman- - March 10, 2009 - 21:54
Project:Dynamic Persistent Menu
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi
I'm experiencing difficulties with theming menu because it's placed in the top header of my website inside exsisting structure and block is not needed, I'd like to have a code which I could paste inside my page.tpl.php instead doing this by enabling block, is this possible?

I'm wondering about something like from the yui menu:

<?php
if (module_hook('yuimenu','menu') && ("tns" == variable_get('yuimenu_type','tns') || "tnm"==variable_get('yuimenu_type','tns')) ){
?>

<?php
print html_menu(variable_get('yuimenu_root','1') );
?>

<?php
}
?>

#1

-Shaman- - July 4, 2009 - 21:22
Version:6.x-1.0» 6.x-1.x-dev

#2

Plazmus - August 1, 2009 - 19:18

you can call dynamic persistent menu block directly from your page.tpl.php file, so you will not get all that additional block div's.

<?php
$block
= module_invoke('dynamic_persistent_menu', 'block', 'view', '0');
  print
$block['content'];
?>

 
 

Drupal is a registered trademark of Dries Buytaert.