Hi all,
After many hours of research and tinkering I'm at my wits end. I'm working on a Drupal 6 project that requires two search forms. The generic search form works fine, but creating a secondary form does not seem to work at all.
Basing my code on stuff I found in this thread: http://drupal.org/node/68571#comment-678342
This is exactly what I need, but it just doesn't seem to work in Drupal 6 and I'm struggling to figure out why. Essentially I need to accomplish what an Advanced Search Form with a specific Taxonomy term selected does (note, this works fine, but my clients need it easier to deal with).
Employing the code in the other thread results in a form that just doesn't trigger the search module. Does anyone have any advice about how best create this search form?
Thanks!
Comments
That thread looks to be d5--
That thread looks to be d5-- not all d5 code will work automatically with d6. I've used views for d6 with an exposed filter for the taxonomy dropdown, works great. You can even setup a nice ajaxy block for it as well-- very slick.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Yup, it's all D5, and it
Yup, it's all D5, and it doesn't work. I'm appealing to the community to see if anyone has had experience doing this functionality in Drupal6.
Is it possible to create a view that takes in an argument from a form? The Views Fastsearch module seems to do this function but it again is D5 only.
What also would work would be a way to display the Advanced search form specifically on a given page without having to initially search for something and then click on the title to expand the box.
Maybe I'm not understanding
Maybe I'm not understanding what you're trying to do, but afaik, this is exactly what views exposed filters do.
As for automatically expanding the advanced search form, see http://drupal.org/node/85978#comment-725363.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Views External Filter
Thanks for the help! That's exactly what I need.
I do have one other question though, perhaps someone might know the answer. I've setup a view with an exposed filter, and if I create a "Page" display of it, everything works great. But if I set it up as a "Block" display, the filters refuse to show up. Is it technically possible to use exposed filters with a block display?
The reason I need this is because the page that will contain the view also has static text and images on it. Does that make sense?
Nevermind
I found what I was looking for in "Exposed form in block".
Thanks for all your help and for pointing me in the proper direction!
no problem-- good
no problem-- good luck.
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
I made a module
I just went through that hell myself.
Apparently it can also be done with views etc, but I just wanted a selector added to the normal search block. NOT EASY.
But done.
My version is at : http://cvs.drupal.org/viewvc.py/drupal/contributions/sandbox/dman/search...
It may make a project unless someone points out that it's really a lot easier than I thought....
.dan. is the New Zealand Drupal Developer working on Government Web Standards
ye gods...
Havent been trolling the forum for goodness knows how long and the first thread I look at I find this - precisely what I've been pondering all day (well, all night actually) - cheers dman.
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
The problem with views search
The problem with views search is, it is too specific. You can't search for a word and get other variation of the word.