Re: [web2py] Re: How to build a modular menu

2012-07-17 Thread Cliff Kachinske
You are welcome. On Tuesday, July 17, 2012 2:48:35 AM UTC-4, Johann Spies wrote: > > Thanks Jaap and Cliff. > It was helpful. > > Regards > Johann > -- > Because experiencing your loyal love is better than life itself, > my lips will praise you. (Psalm 63:3) > > --

Re: [web2py] Re: How to build a modular menu

2012-07-16 Thread Johann Spies
Thanks Jaap and Cliff. It was helpful. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3) --

[web2py] Re: How to build a modular menu

2012-07-16 Thread Cliff Kachinske
submenu = [] response.menu = [ (T('Home'), False, URL('default', 'index'), submenu), ] if needsubmenu: sub_submenu = [] submenu.append([ (T('A submenu item'), False, URL('mygreatapp', blah), sub_submenu), # more menu items ]) if needsub_submenu: subsubmenu.append([

[web2py] Re: How to build a modular menu

2012-07-16 Thread JaapP
Hi Johan, following code works for me to insert some items from the db into a submenu: response.menu = [ ('Home', False, URL('default','index'), []), ] if auth.is_logged_in(): locaties = db(db.locatie.apotheek_id==auth.user.apotheek_id).select() if locaties: locaties_