06/01/2010, 16:12:41
Ca y est, le problème est presque résolu avec le code suivant.
ce qui donne:
http://www.alternative-liege.be/cms
On y arrivera...
Code :
{if $count > 0}
<ul>
{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></div>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<div id='{$node->extra1}' {elseif $node->type == 'separator'}
<li>
<a {elseif $node->haschildren == true}
<li>
<div id='{$node->extra1}'{elseif $node->type == 'separator'}
<li style="list-style-type: none;"> <hr class="menu_separator />{else}
<li>
<a {/if}
{if $node->type != 'sectionheader' and $node->type != 'separator'}
{if $node->target}target="{$node->target}" {/if}
href="{$node->url}">{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
>{$node->menutext}{*</a>*}
{/if}
{/foreach}
{repeat string='</li>
</ul>
</div>' times=$node->depth-1}
</li>
</ul>
{/if}
http://www.alternative-liege.be/cms
On y arrivera...