you can put this in layout.html above the NAV section. Thats how Leonel taught me.
form = FORM(INPUT(_name='Search', requires=IS_NOT_EMPTY()),INPUT(_type='submit')) On Friday, March 20, 2015 at 9:21:58 AM UTC-4, Gael Princivalle wrote: > > Hi Ron. > > For the moment I've not done this function, I'll do it asap. > Thank you for this suggestion, but using response.title the search > function will search only in title pages, right? > > Il giorno venerdì 20 marzo 2015 01:44:00 UTC+1, Ron Chatterjee ha scritto: >> >> Were you able to find a way around for the global search option. I >> believe one way you can do this is to create a form and call that form in >> menu.py using response.title. >> >> I am sure there are lot of other ways. Any thoughts? >> >> On Wednesday, March 11, 2015 at 4:43:29 AM UTC-4, Gael Princivalle wrote: >>> >>> Thanks Ron but I've don't understand your answer, and I've don't find >>> anything about this question page 84 of the web2py_manual_5th.pdf book. >>> >>> Anyway I can imagine the solution is crawling all searchable fields in >>> all tables, saving in the for loop all rows references (function/args), and >>> displaying a link list. >>> >>> >>> Il giorno lunedì 9 marzo 2015 19:08:32 UTC+1, Ron Chatterjee ha scritto: >>>> >>>> SQLFORM.build_query[(db.table.field)] >>>> >>>> Passing a list ([]) into that will give you a text in that field. and >>>> then you can use a form input to do the display like the book on page 84 >>>> on >>>> the book. Damn I am getting good at this! >>>> >>>> On Monday, March 9, 2015 at 1:44:23 PM UTC-4, Gael Princivalle wrote: >>>>> >>>>> Sure. >>>>> >>>>> The search field at the top: >>>>> http://www.chainreactioncycles.com/us/en >>>>> >>>>> >>>>> Il giorno lunedì 9 marzo 2015 17:47:09 UTC+1, Ron Chatterjee ha >>>>> scritto: >>>>>> >>>>>> Can you give an example of "global Search". Any reference site? >>>>>> >>>>>> On Monday, March 9, 2015 at 12:18:54 PM UTC-4, Gael Princivalle wrote: >>>>>>> >>>>>>> Hello all. >>>>>>> >>>>>>> I would like to add a global search form in a website, the classical >>>>>>> one with one field and a search button. >>>>>>> I've got some idea's about how doing it, but I would like to know if >>>>>>> there's an example on line, or if someone have some suggestions. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

