I see a few problems:
- It should be =MENU(...), not MENU=(...)
- The arguments should be separated by commas, not spaces.
- _lu_class should be ul_class.
So, try:
{{=MENU(response.menu,_class='sf-menu', ul_class='my-class',
li_class='my-class')}}
Anthony
On Thursday, May 5, 2011 6:30:15 PM UTC-4, francois wrote:
> Hi,
>
> I have a submenu pb width (too small), where is the class web2py-menu-
> vertical?
> because if I try to add ul_class = 'my-class' and li_class = 'my-
> class', they are assigned to top-level menu and
> submenu remains with li class = "menu-expand-web2py" and ul class =
> "web2py-menu-vertical "
> eg in layout.html
> {{#------ Superfish menu ------}}
> {{MENU = (response.menu, _class = 'sf-menu ' _lu_class = 'my-class'
> li_class = 'my-class')}}
>
> the html result
> <ul class="sf-menu" li_class="ma-class" ul_class="ma-class"><li><a
> href="">Home</a></li><li><a href="">Lunettes</a></li><li><a
> href="">Lentilles</a></li><li class="web2py-menu-expand"><a
> href="">Visage</a><ul class="web2py-menu-vertical"><li><a
> href="i">Envoyer votre photo</a></li><li><a href="/interlu/visage/
> index">Réglages</a></li></ul></li></ul>
>
> in my menu, "Envoyer votre photo"is written on two lines.....
>
> Thanks
>
> Francois