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
>
>  - True | False: True means that web2py will apply a CSS class called
> "web2py-menu-active" on the items
>
Thanks, I couldn't think of anything for that parameter
>  - 3rd parm (href parm - 'link1'):  This is the href attribute to tell
> the browser what to do when the list item is clicked (part of the
> anchor tag).  So in the example, if they click on 'One', they will be
> directed to the reference 'link1'.  You could put a reference to a
> controller here if you want it to do something special.
>
> You can see what happens if you just create a simple controller that
> just creates a MENU and then look at the HTML that is rendered on the
> view.
>
> 2.  I think the double brackets are needed, I tried with single
> brackets and got an error.  If you are referring to the second
> example, the brackets are there since one is a nested submenu.
>
Yes they are needed now,
but the syntax can be perfectly determined with one bracket less !

cheers,
Stef

Reply via email to