Page 1 of 1
Два меню на одной странице
Posted: Sat Aug 28, 2010 1:10 pm
by seregarem
В шапке есть меню:
1. Библиотека ГОСТов
2. Полезные ресурсы
3. Форум
4. Статьи
Кроме того, необходимо добавить еще одно меню в подвал:
1. Добавить в избранное
2. Отправить ссылку другу
3. Вставить в блог
4. Контакты
Как можно это реализовать? Есть ли какой-нибудь модуль для этого?
Re: Два меню на одной странице
Posted: Sat Aug 28, 2010 6:32 pm
by d-fm1301
Сделай два шаблона меню и вставляй через {menu template='Название_шаблона_меню'}
если конечно я правильно понял что тебе нужно?
Re: Два меню на одной странице
Posted: Sat Aug 28, 2010 6:57 pm
by seregarem
Я пробовал так, но во втором меню почему-то появляются пункты из первого

Re: Два меню на одной странице
Posted: Mon Aug 30, 2010 6:58 am
by d-fm1301
ну попробуй тогда сделай одно меню обзови как хочешь и сделай по умолчанию. и вставь тег {menu} , а второе меню {menu template='Название_шаблона_меню'}
Re: Два меню на одной странице
Posted: Mon Aug 30, 2010 7:27 am
by seregarem
У меня два меню:
Первое - menu_snoska ({menu}) содержание:
{* CSS classes used in this template:
.activeparent - The top level parent when a child is the active/current page
li.active0n h3 - n is the depth/level of the node. To style the active page for each level separately. The active page is not clickable.
.clearfix - Used for the unclickable h3 to use the entire width of the li, just like the anchors. See the Tools stylesheet in the default CMSMS installation.
li.sectionheader h3 - To style section header
li.separator - To style the ruler for the separator *}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
{$node->menutext}
url}">{$node->menutext}
{elseif $node->haschildren == true and $node->type != 'sectionheader' and $node->type != 'separator'}
url}">{$node->menutext}
{elseif $node->current == true}
{$node->menutext}
{elseif $node->type == 'sectionheader'}
{$node->menutext}
{elseif $node->type == 'separator'}
{else}
url}">{$node->menutext}
{/if}
{/foreach}
{repeat string="" times=$node->depth-1}
{/if}
Второе меню: bottom_menu ({menu template="bottom_menu"})
Содержание такое же, как и в первом.
Оба меню выводятся с одинаковым содержимым.