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}}
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
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
3 matches
Mail list logo