5
Quote:
All taken from Multimenu instruction guide
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.