[web2py] Re: menu issues when no subitems

2012-04-13 Thread Massimo Di Pierro
> > This: > (T('Whatever'), False, URL(...wherever...), [empty]), should be (T('Whatever'), False, URL(...wherever...), empty or []),

Re: [web2py] Re: MENU issues ...

2010-10-14 Thread Stef Mientki
On 14-10-2010 07:34, mdipierro wrote: >> 3. I love the "append" (and probably other methods) of the Helpers, really >> beautiful !! >> Why does Menu not allow these methods ? > it does. Menu is just a list of tuples > > response.menu=[] > submenu_title=[] > response.menu.append(("Search",False,U

Re: [web2py] Re: MENU issues ...

2010-10-14 Thread Stef Mientki
On 14-10-2010 06:20, Alex wrote: > Hello, > > I can try to answer your first 2 questions: > > 1. It looks like the parameters are (based on the example in the > book): > - 1st parm (Item Text - 'One'): The text you want to show for the > item, so the list item will render with the text of: One >

[web2py] Re: MENU issues ...

2010-10-13 Thread mdipierro
the second argument should really be some condition that determines if that is the current age and returns True/False On Oct 13, 6:06 pm, Stef Mientki wrote: >  On 14-10-2010 00:58, Stef Mientki wrote: > > >  hello, > > > thanks to you all I got the left sidebar menu working, great !! > > > Stil

[web2py] Re: MENU issues ...

2010-10-13 Thread Stef Mientki
On 14-10-2010 00:58, Stef Mientki wrote: > hello, > > thanks to you all I got the left sidebar menu working, great !! > > Still a few questions : > > 1. In chapter 5, it says, each MENU item takes 3 parameters "as described in > chapter 4", > but I can't find the description of these parameters,

[web2py] Re: MENU issues ...

2010-10-13 Thread mdipierro
> 3. I love the "append" (and probably other methods)  of the Helpers, really > beautiful !! > Why does Menu not allow these methods ? it does. Menu is just a list of tuples response.menu=[] submenu_title=[] response.menu.append(("Search",False,URL('index'),submenu_title)) submenu_title.append(

[web2py] Re: MENU issues ...

2010-10-13 Thread Alex
Hello, I can try to answer your first 2 questions: 1. It looks like the parameters are (based on the example in the book): - 1st parm (Item Text - 'One'): The text you want to show for the item, so the list item will render with the text of: One - True | False: True means that web2py will app