7
hello,
there a simple tip to display a menu without using a block.
it needs only a little change in your theme.
multimenu 1.9rc1 (but really stable to use from some months).
you can see an example in module's help
http://yourwebsite/modules/multiMenu/admin/index.php?op=help&Help=042. Menu integration into a XOOPS theme
Here is an exemple with the horizontal dynamic menu, in 3 steps:
1) Activate your menu selecting the horizontal dynamic option.
Into the bloc setting, set 'navbar' as bloc title and select column left display.
2) Edit your theme 'theme.html' file, and add the following code where you want your menu to be displayed:
<{foreach item=block from=$xoops_lblocks}> <{if $block.title == 'navbar'}> <{$block.content}> <{/if}> <{/foreach}>
3) Next step, spot the smarty lines used to generate your left side blocs and change it as following:
Before :
<{foreach item=block from=$xoops_lblocks}> <{include file='default/theme_blockleft.html'}> <{/foreach}>
After :
<{foreach item=block from=$xoops_lblocks}> <{if $block.title != 'navbar'}> <{include file='default/theme_blockleft.html'}> <{/if}> <{/foreach}>
Explanation:
- 'navbar' is the name of the bloc which needs to be displayed or not.
- The first code displays the left bloc having 'navbar' as title.
- Le second one displays all the blocs except the one which has 'navbar' as title.