Bonjour!
Quelques nouveautés apporte le module bmenu 0.4.6 par rapport aux anciennes versions?
Franche collaboration !
Gérard depuis le Cameroun
[resolu]bmenu 0.4.5 vers 0.4.6
Moderator: jce76350
[resolu]bmenu 0.4.5 vers 0.4.6
Last edited by okoweb on Thu Jan 31, 2008 1:44 pm, edited 1 time in total.
Re: bmenu 0.4.5 vers 0.4.6
Version 0.4.6 adds a template to the Menu Manager that works best with the bMenu module. From version 0.4.6 you can use the
Call.
This template will work with the default settings of bMenu. I added this template because many people seem to have problems adapting bMenu to their Menu template.
Code: Select all
{menu template=bMenu}
This template will work with the default settings of bMenu. I added this template because many people seem to have problems adapting bMenu to their Menu template.
Utilisations
Bonsoir !
1- Methode
- head
- body à l'endroit d'affichage de mon menu :
- et le template simple_navigation.tpl
2- Methode:
- head
- body
A bientôt !
Cela veut dire que tous ces 2 méthodes sont fonctionnelles :bterkuile wrote: Version 0.4.6 adds a template to the Menu Manager that works best with the bMenu module. From version 0.4.6 you can use the
{menu template=bMenu}
Call.
1- Methode
- head
Code: Select all
{cms_module module="bMenu"}
- body à l'endroit d'affichage de mon menu :
Code: Select all
{menu template='simple_navigation.tpl'}
{cms_module module="bMenu" styleid="..."}
Code: Select all
{if $count > 0}
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul>" times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->current == true}
<li class="currentpage"><a class="currentpage" href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->parent == true}
<li class="activeparent"><a class="activeparent" href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr />
{else}
<li><a href="{$node->url}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $node->tabindex != ''} tabindex="{$node->tabindex}"{/if}{if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}{if $node->target != ''} target="{$node->target}"{/if}><dfn>{$node->hierarchy}: </dfn>{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
- head
Code: Select all
{cms_module module="bMenu"}
Code: Select all
{menu template=bMenu}
{cms_module module="bMenu" styleid="..."}
Last edited by okoweb on Sat Jan 26, 2008 2:36 pm, edited 1 time in total.