I need a menu with an image background on the first cell. The last wo cells of my menu should each have a different background. The remaining cell will have a common background image.
I was told that this is difficult to achieve with the default joomla template and someone told me to use Pat template instead. I've downloaded the suckerfish-vertical menu and trying to customize it. ITs a real headache .
How to adjust the menu.html so as to apply different background on different cell of my main menu ?
Here's the default menu.html:
Code: Select all
<patTemplate:tmpl name="menu" whitespace="trim">
<script type="text/javascript" language="JavaScript" src="{TEMPLATE_HOME}/js/menu.js"></script>
<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><patTemplate:tmpl name="condition_HAS_SUB_MENU_ITEMS" type="condition" conditionvar="HAS_SUB_MENU_ITEMS" varscope="menu_item" whitespace="trim">
<patTemplate:sub condition="1">
{LINK_OPEN}<span class="expanded">{CAPTION}</span>{LINK_CLOSE}
</patTemplate:sub>
<patTemplate:sub condition="__default">
{LINK_OPEN}{CAPTION}{LINK_CLOSE}
</patTemplate:sub>
</patTemplate:tmpl>{SUB_MENU_ITEMS}</li>
</patTemplate:tmpl>
Thanks