Mainmenu sub items in own row - Joomla! Forum - community, help and support
hello ... im trying similar
like on site: http://www.bonprixsecure.com/at/shop.ht ... 2c687&nv=1
or in code...see bellow
first wanted change original code mod_mainmenu... complicated me...then found
extended menu module. installed , "created" copied sample pat template custom menu template...any way tryed understand how pattemplate works couldn't achieve thing want. attached pattemplate have menu..
can me create template output links on second level @ end.. or tell me if anythig can allready exists.
thanks,
uros
like on site: http://www.bonprixsecure.com/at/shop.ht ... 2c687&nv=1
or in code...see bellow
code: select all
<ul id="root-menu" >
<li id="rootitem_1">one</li>
<li id="rootitem_2">two</li>
<li id="rootitem_3">three</li>
<ul>
<ul id="sub-menu" >
<li id="menuitem_1">sub one</li>
<li id="menuitem_2">sub two</li>
<ul>
first wanted change original code mod_mainmenu... complicated me...then found
extended menu module. installed , "created" copied sample pat template custom menu template...any way tryed understand how pattemplate works couldn't achieve thing want. attached pattemplate have menu..
can me create template output links on second level @ end.. or tell me if anythig can allready exists.
thanks,
uros
code: select all
<pattemplate:tmpl name="menu" whitespace="trim">
<div class="menu{class_suffix}">
{menu_list}
</div>
</pattemplate:tmpl>
<pattemplate:tmpl name="menu_list" whitespace="trim">
<ul
id="menulist_{hierarchy}{class_suffix}"
<pattemplate:tmpl name="condition_level" type="condition" conditionvar="level" varscope="menu_list" whitespace="trim">
<pattemplate:sub condition="0">
class="mainlevel{class_suffix}"
</pattemplate:sub>
</pattemplate:tmpl>
>{menu_items}</ul>
</pattemplate:tmpl>
<pattemplate:tmpl name="menu_item" whitespace="trim">
<li
id="menuitem_{hierarchy}{class_suffix}"
<pattemplate:tmpl name="condition_is_active" type="condition" conditionvar="is_active" varscope="menu_item" whitespace="trim">
<pattemplate:sub condition="1">
class="active_menu{class_suffix}"
</pattemplate:sub>
</pattemplate:tmpl>
>{link}{sub_menu_items}</li>
</pattemplate:tmpl>
Comments
Post a Comment