18/09/2015, 14:50:57
Citation :#~~~~~ DEBUT BLOC A NE PAS SUPPRIMER ~~~~~
#~ Version du CMS: ?
#~ Url du site :
#~ Hébergeur / Soft :
#~ Informations Système :
#~ ----------------------------------------------
#~ Cms Version: 2.0
#~ Installed Modules:
#~ AdminSearch: 1.0
#~ CMSContentManager: 1.0
#~ DesignManager: 1.0
#~ FileManager: 1.5
#~ MicroTiny: 2.0
#~ ModuleManager: 2.0
#~ Navigator: 1.0
#~ News: 2.50
#~ Search: 1.50
#~ Config Information:
#~ php_memory_limit:
#~ max_upload_size: 64000000
#~ url_rewriting: none
#~ page_extension:
#~ query_var: page
#~ auto_alias_content: true
#~ locale:
#~ set_names: true
#~ timezone: Europe/Paris
#~ permissive_smarty: false
#~ Php Information:
#~ phpversion: 5.5.12
#~ md5_function: On (Vrai)
#~ json_function: On (Vrai)
#~ gd_version: 2
#~ tempnam_function: On (Vrai)
#~ magic_quotes_runtime: Off (Faux)
#~ E_STRICT: 0
#~ E_DEPRECATED: 0
#~ test_file_timedifference:
#~ test_db_timedifference:
#~ memory_limit: 128M
#~ max_execution_time: 120
#~ output_buffering: 4096
#~ file_uploads: On (Vrai)
#~ post_max_size: 3M
#~ upload_max_filesize: 64M
#~ session_save_path: D:/wamp/tmp (0777)
#~ session_use_cookies: On (Vrai)
#~ xml_function: On (Vrai)
#~ xmlreader_class: On (Vrai)
#~ Performance Information:
#~ allow_browser_cache: Off (Faux)
#~ browser_cache_expiry: 60
#~ php_opcache: Off (Faux)
#~ smarty_cache: Off (Faux)
#~ smarty_compilecheck: Off (Faux)
#~ smarty_cache_udt: Off (Faux)
#~ auto_clear_cache_age: On (Vrai)
#~ Server Information:
#~ Server Api: apache2handler
#~ Server Db Type: MySQL (mysqli)
#~ Server Db Version: 5.6.17
#~ Server Db Grants: Trouvé un privilège "GRANT ALL" qui semble être adapté
#~ Server Time Diff: Aucune différence de date du système de fichiers trouvées
#~ ----------------------------------------------
#~~~~~ FIN BLOC A NE PAS SUPPRIMER ~~~~~
Bonjour,
Je viens de passer mon site responsive en cmsms 2.0
J'utilise bootstrap 3.3.5.
Mon souci se situe au niveau du menu.Etant donné que les choses ont pas mal changé à ce niveau, je sollicite votre aide afin de m'accompagner dans la création de mon menu de navigation.
Chose importante, le site ne comportera qu'un seul point de menu dans lequel se trouvera plusieurs liens vers des ancres. Et oui, le site est en scrolling uniquement.
Nous aurons donc un menu comme ceci :
Navigation
- Accueil (lien vers home page)
- L'entreprise (lien vers ancre id = entreprise)
- Les produits (lien vers ancre id = les-produits)
-.....
Liens vers le site : www.carryall.fr
Voici le Menu template que j'utilisais dans la version 1.12 :
Code :
[== HTML ==]
{strip}
{if $count > 0}
<ul class='nav navbar-nav navbar-right' role='menu'>
{* if using cmsms lower then 1.11 change foreach below to {foreach from=$nodelist item='node'} *}
{foreach $nodelist as $node}
{* if depth is greater then previous we need ul *}
{if $node->depth > $node->prevdepth}
{repeat string="<ul class='dropdown-menu' role='menu'>" times=$node->depth-$node->prevdepth}
{* if depth is lower then we have to close unordered list *}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li></ul>' times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}
</li>
{/if}
{* is menu item current? *}
{if $node->current == true}
<li class='active{if $node->parent == true || $node->haschildren == true}{if $node->depth > 1} dropdown-submenu{else} dropdown{/if}{/if}'>
<a href='{$node->url}' {if $node->parent == true || $node->haschildren == true}class='dropdown-toggle {$node->alias}' data-toggle='dropdown' data-target='#'{else}class='{$node->alias}'{/if}{if $node->target != ''} target='{$node->target}'{/if}>{$node->menutext}{if ($node->parent == true || $node->haschildren == true) && ($node->depth < 2)} <b class='caret'></b>{/if}</a>
{* is menu item parent and not sectionheader? *}
{elseif $node->parent == true && ($node->type != 'sectionheader' && $node->type != 'separator')}
<li class='{if $node->parent == true || $node->haschildren == true} active{if $node->depth > 1} dropdown-submenu{else} dropdown{/if}{/if}'>
<a href='{$node->url}' data-toggle='dropdown' data-target='#' class='dropdown-toggle active {$node->alias}'{if $node->target != ''} target='{$node->target}'{/if}>{$node->menutext}{if ($node->parent == true || $node->haschildren == true) && ($node->depth < 2)} <b class='caret'></b>{/if}</a>
{* is menu item a sectionheader? *}
{elseif $node->type == 'sectionheader' && ($node->parent == true || $node->haschildren == true)}
<li class='sectionheader {if $node->depth > 1} dropdown-submenu{else} dropdown{/if}'>
<a href='#' data-toggle='dropdown' class='dropdown-toggle {$node->alias}{if $node->current == true} active{/if}'>{$node->menutext}{if ($node->parent == true || $node->haschildren == true) && ($node->depth < 2)} <b class='caret'></b>{/if}</a>
{* and sectionheader has no children? *}
{elseif $node->type == 'sectionheader' && $node->haschildren == false}
<li class='sectionheader nav-header'>
{$node->menutext}
{* should a menu item be separated? *}
{elseif $node->type == 'separator'}
<li class='divider'>
{else}
<li{if $node->parent == true || $node->haschildren == true} class='{if $node->depth > 1}dropdown-submenu{else}dropdown{/if}'{/if}>
<a href='#{$node->alias}' {if $node->parent == true || $node->haschildren == true}class='dropdown {$node->alias}'{else}class='scrollTo'{/if}{if $node->target != ''} target='{$node->target}'{/if}>{$node->menutext}{if ($node->parent == true || $node->haschildren == true) && ($node->depth < 2)} <b class='caret'></b>{/if}</a>
{/if}
{/foreach}
{repeat string='</li></ul>' times=$node->depth-1}</li>
</ul>
{/if}
{/strip}
N'hésitez pas à me demander plus d'infos si jamais je n'avais pas été assez clair.
D'avance merci