Posted by -Shaman- on March 10, 2009 at 9:54pm
Jump to:
| Project: | Dynamic Persistent Menu |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
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
}
?>
Comments
#1
#2
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'];
?>
#3