Re: [web2py] Re: A MCV-related question: global search form

2015-11-23 Thread Johann Spies
Thanks Leonel and Ian. Just in case it might help someone else, this is the code in layout.html that works for me: {{if response.menu:}} {{=MENU(response.menu, _class='nav navbar-nav',li_class='dropdown',ul_class='dropdown-menu')}} {{pass}}

[web2py] Re: A MCV-related question: global search form

2015-11-18 Thread Leonel Câmara
If you want to use the autocomplete widget you will have to use LOAD. I would not go this route. I would include the form in layout.html and then use javascript to do the lookups using a controller function specific for searching, probably using something like selectize

[web2py] Re: A MCV-related question: global search form

2015-11-18 Thread Ian Ryder
It could be pretty straight forward - as Leonel says, you would use Javascript / Ajax. If you rolled your own autocomplete you would have a controller in default (for example) and the layout would refer back to that controller. Doesn't matter what page you are looking at, the Ajax call is