Mobile menu

tevart

Avatar: tevart

2013-03-13 14:47

I'm using jQueryMobile lib to show mobile version. I have problem with menus.tpl file and submenus.

Problem is that $aData[sSubContent] doesn't have it's own LIST block, but it uses main LIST block. Is it possible to add SUB_LIST inside LIST block?


I need this

<div id="1">
<div id="2">
<h3>Main menu 1</h3>
<ul>
<li>sub1</li>
<li>sub2</li>
</ul>
</div>
</div>

Here's what i get

<div id="1">
<div id="2"><h3>Main menu 1</h3>
<ul>
<li>
<div id="2"><h3>sub1</h3></div> (it's adding main list div and h3 to sublist)
<div id="2"><h3>sub2</h3></div>
</li>
</ul>
</div>
</div>

code in menus2.tpl

<!-- BEGIN MOBILE_PAGES -->
<!-- IF:START TYPE --><!-- IF:END TYPE -->
<div id="1">
<!-- START LIST -->
<div id="2">
<h3><a href="$aData[sLinkName]">$aData[sName]</a></h3>
$aData[sSubContent]
</div>
<!-- END LIST -->
</div>
</div>
<!-- END MOBILE_PAGES -->

<!-- BEGIN MOBILE_HEAD_SUB --><ul><li><!-- END MOBILE_HEAD_SUB -->
<!-- BEGIN MOBILE_FOOT_SUB --></li></ul><!-- END MOBILE_FOOT_SUB -->

tnx
teva

» Quick.Cart v5.x

Back to top
about us | contact