I would recommend you do it manually. replace{{=MENU}} with

{{for item in menu:}}

<li>
    <a href="{{item[2]}}"><span class="nav-label">{{=item[0]}}</span></a>
</li>

{{pass}}

On Monday, 5 February 2018 12:25:26 UTC-6, LoveWeb2py wrote:
>
>
> Hello,
>
> response.side_menu = [
>     (T('First Section'), False, URL('#'),[
>         (SPAN('Section 1a'), False, URL('#'), []),
>
>         (SPAN('Section 1b'), False, URL('#'), []),
>
> ])
> ]
>
>
> Which would allow me to use...
>
> {{if response.menu:}}
>     {{=MENU(response.menu, _class='sidebar-content', li_class='', 
> ul_class='??')}}
> {{pass}}
>
>
> I'm trying to use the MENU helper and can't seem to find a good way to 
> make it conform to the following:
>
> <aside class="navbar-default sidebar">
>
>     <div class="sidebar-overlay-head">
>         <img src="{{=URL('static','assets/images/spin-logo-inverted.png')}}" 
> alt="Logo" />
>         <a href="javascript:void(0)" class="sidebar-switch 
> action-sidebar-close">
>             <i class="fa fa-times"></i>
>         </a>
>     </div>
>     <div class="sidebar-logo">
>         <img class="logo-default" 
> src="{{=URL('static','assets/images/[email protected]')}}" 
> alt="Logo" width="53">
>         <img class="logo-slim" 
> src="{{=URL('static','assets/images/spin-logo-slim.png')}}" alt="Logo">
>     </div>
>
>
>     <div class="sidebar-content">
>         <ul class="side-menu m-t-2">
>             <li>
>                 <a href="#" title="Apps">
>                     <i class="fa fa-folder-open-o fa-fw fa-lg"></i><span 
> class="nav-label">First Section</span> <i class="fa arrow"></i>
>                 </a>
>             <ul>
>                 <li class="active">
>
>                     <a href="#">
>                         <span class="nav-label">C2</span> <i class="fa 
> arrow"></i>
>                     </a>
>                     <ul>
>                     <li>
>                         <a href="#"><span class="nav-label">Section 
> 1.a</span></a>
>                     </li>
>                     <li>
>                         <a href="#"><span class="nav-label">Section 
> 1.b</span></a>
>                     </li>
>                     </ul>
>                 </li>
>             </ul>
>             </li>
>             <li>
>                 <a href="{{=URL('default','settings')}}" title="Settings">
>                     <i class="fa fa-cog fa-fw fa-lg"></i><span 
> class="nav-label">Settings</span> <i class="fa arrow"></i>
>                 </a>
>             </li>
>         </ul>
>
>
> What is the best way to approach this? Thank you
>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to