Re: Search Field on All Pages

2010-08-09 Thread Wesley Childs
Thanks for everyone's advice. My final solution will be to use template inheritance to have the same form across the site and to use the action="/search" to ensure I don't have to import a search function into every single view. Thanks again Wes On 8 August 2010 19:36, kostia wrote: > Yes, so

Re: Search Field on All Pages

2010-08-08 Thread kostia
Yes, somebody can use template tag, somebody content processor and the most intuitive solution is to use template inheritance, as was suggested. Thank you, Tim. Wish you good luck. I loved your musician web site. -- You received this message because you are subscribed to the Google Groups "Djan

Re: Search Field on All Pages

2010-08-08 Thread André Santos
What about creating a template_tag for the form? Is that a good way to add it to several templates? 2010/8/8 Roald de Vries > On Aug 8, 2010, at 2:04 PM, Tim Sawyer wrote: > >> What I do is to setup a search that works at /search/q=search_term, and >> then create a form on each page that submits

Re: Search Field on All Pages

2010-08-08 Thread Tim Sawyer
On 08/08/10 14:48, kostia wrote: To continue, Tim, do you use haystack? I passed its beginning tutorial and configured with xapian through haystack-xapian module. Now I'm discovering the other haystack docs and api. Not everything is clear. For example I have a user with name Bob. When I type in

Re: Search Field on All Pages

2010-08-08 Thread Roald de Vries
On Aug 8, 2010, at 2:04 PM, Tim Sawyer wrote: What I do is to setup a search that works at /search/q=search_term, and then create a form on each page that submits to /search. This form is in my top level site template. The /search/ url is part of a search application. There's an exa

Re: Search Field on All Pages

2010-08-08 Thread kostia
Also I will be happy if someone can explain the drill-down (faceting) or “More Like This” features. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this grou

Re: Search Field on All Pages

2010-08-08 Thread kostia
It seems the question is answered. To continue, Tim, do you use haystack? I passed its beginning tutorial and configured with xapian through haystack-xapian module. Now I'm discovering the other haystack docs and api. Not everything is clear. For example I have a user with name Bob. When I type in

Re: Search Field on All Pages

2010-08-08 Thread Steve Holden
On 8/8/2010 5:41 AM, wchildsuk wrote: > Hi, > > I want a search field on all my pages and was wondering the best way > to do this. I could create a function and import it to every view but > this doesn't seem to follow the django DRY principles. > > I was wondering if anyone had any advice on how

Re: Search Field on All Pages

2010-08-08 Thread Tim Sawyer
What I do is to setup a search that works at /search/q=search_term, and then create a form on each page that submits to /search. This form is in my top level site template. The /search/ url is part of a search application. There's an example of this working at http://www.brassbandresult