• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: capire i menu  [SOLVED]
PostPosted: Sun Aug 12, 2007 3:26 pm 
Salve a tutti e prima domanda :)
Come funziona il codice dei menu?

Detto altrimenti, io vorrei realizzare un semplice menu orizzontale che mostri le sottopagine al passaggio del mouse sul link, con un effetto menu a tendina.

Resomi conto della necessità di un javascript per fare ciò vorrei provare a partire da qualcosa di più semplice, ovvero sempre un menu orizzontale che mostri solo le categorie e non le sottopagine. Solo che non riesco a comprendere il codice usato nel menu per mostrare i titoli delle categorie/pagine.

Qualcuno può aiutarmi? grazie


Top
  
 
 Post subject: Re: capire i menu
PostPosted: Mon Aug 13, 2007 8:10 am 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4821
Location: Ferrara, Italy
dariodn wrote:
Come funziona il codice dei menu?


Ho sempre pensato che gli esempi fossero sempre il miglior modo di capire il funzionamento.
Hai provato a guardare qui, il tutto è comandato da un array $nodelist

Alby

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
 Post subject: Re: capire i menu
PostPosted: Mon Aug 13, 2007 3:21 pm 
si ho guardato... e ad essere sincero mi sembrano tutto fuorché chiari :)

cmq ho applicato la lista degli alias nel richiamo del template così da mostrare solo le voci dei menu che voglio. C'è possibilità di fare in modo che, in un altro menu, in base alla pagina nella quale sto appaiano solo le eventuali sottopagine della stessa ?


Top
  
 
 Post subject: Re: capire i menu
PostPosted: Mon Aug 13, 2007 5:22 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4821
Location: Ferrara, Italy
dariodn wrote:
C'è possibilità di fare in modo che, in un altro menu, in base alla pagina nella quale sto appaiano solo le eventuali sottopagine della stessa ?


Sempre
L'ho ripulito delle icone e della descrizione:

Code:
{assign var="depth" value="-2"}
{assign var="depthcheck" value="0"}

{if $count > 0}
{foreach from=$nodelist item=node}

{if $depthcheck == 1 && $node->depth != $node->prevdepth}
<ul class="menu_horiz">
{assign var="depth" value=$node->depth}
{assign var="depthcheck" value="0"}
{assign var="listopened" value="1"}
{/if}

{if $node->depth == $depth}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a></li>
{/if}

{if $node->current == true &&  $node->haschildren == true}
{assign var="depthcheck" value="1"}
{/if}
{/foreach}

{if $listopened == 1}
</ul>
{/if}
{/if}


Non l'ho testato ma dovrebbe funzionare

Alby

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner