Please get 1.62.3 and use

{{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}}

there is a typo in the code below and it is deprecated anyway,

Massimo

On May 20, 7:51 am, murray3 <[email protected]> wrote:
> I am using:
>
> > {{menu=MENU(response.menu)}}
> > {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}}
> > {{=menu}}
>
> with this in menu.db:
> response.menu = [
>     ['Index', False,
>      URL(request.application,'default','index')],
>      ['another', False,
>      URL(request.application,'default','another')],
>     ]
>
> how do I get the menu tabs (Index,another etc) to line up horizontally
> on page, (at moment they show vertically)
> do I need to use css to do this or is there easier way of doing this?
> thanks
> chrism
>
> On May 20, 5:37 am, mdipierro <[email protected]> wrote:
>
> > I am going to change this. This was new in version 1.62 and not really
> > well thought. In trunk now you can do
>
> > {{=MENU(response.menu,_class='web2py-menu web2py-menu-horizontal'}}
>
> > and this more in line with the syntax of other helpers. The syntax in
> > the previous example is gone.
>
> > massimo
>
> > On May 19, 4:55 pm, Tim Michelsen <[email protected]> wrote:
>
> > > > {{menu=MENU(response.menu)}}
> > > > {{menu.ul_class_0 = 'web2py-menu web2py-menu-horizonal'}}
> > > > {{=menu}}
>
> > > Thanks.
> > > I though I had to define the class in the controller.
> > > This is really cool.
> > > Thanks for that.- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to