Menu header e menu footer nello stesso template Topic is solved

La discussione sul CMS Made Simple in italiano.

Moderator: magallo

Post Reply
webmast

Menu header e menu footer nello stesso template

Post by webmast »

Salve,

vorrei inserire nello stesso template il menu dell'header ed il menu del footer. Hanno queste strutture semplici e sono tutti e due orizzontali:

+menu-fisso-header
--paginauno (prima pagina del sito)
--paginadue
--paginatre
--paginaquattro
--paginacinque

+menu-fisso-footer
--paginauno (prima pagina del sito)
--paginadue
--paginatre

Ho pubblicato già il menu dell'header, utilizzando uno dei modelli presenti nel cms, e non ho trovato nessun problema:

Code: Select all

{* CSS classes used in this template:
#menuwrapper - The id for the <div> that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the <ul>
.menuparent - The class for each <li> that has children.
.menuactive - The class for each <li> that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
<div id="menuwrapper">
<ul id="primary-nav">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="unli">' 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->parent == true or ($node->current == true and $node->haschildren == true)}
<li class="menuactive menuparent">
<a class="menuactive menuparent" {elseif $node->current == true}
<li class="menuactive">
<a class="menuactive" {elseif $node->haschildren == true}
<li class="menuparent">
<a class="menuparent" {elseif $node->type == 'sectionheader' and $node->haschildren == true}
<li class="sectionheader"><span class="sectionheader">{$node->menutext}</span>{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}"><span>{$node->menutext}</span></a>
{elseif $node->type == 'sectionheader'}
><span class="sectionheader">{$node->menutext}</span></a>
{/if}
{/foreach}
{repeat string='</li></ul>' times=$node->depth-1}
</li>
</ul>
<div class="clearb"></div>
</div>
{/if}
Non riesco a pubblicare il menu del footer.  ???
Qual è il metodo?

Grazie

webmast

 
Last edited by webmast on Fri Dec 18, 2009 7:01 pm, edited 1 time in total.
axxe16

Re: Menu header e menu footer nello stesso template

Post by axxe16 »

Ciao, non mi è chiarissimo il problema...
per inlcudere un menu nel template devi usare il tag {menu} con gli eventuali parametri. Quindi per inserire il medesimo menu nell'header e nel footer basta inserire due volte {menu}

Quello che hai riportato nel tuo post è un modello di menu ma non va inserito direttamente nel template (o ho capito male?)
Post Reply

Return to “Italian - Italiano”