Posted by neopulse on July 5, 2009 at 12:22am
Jump to:
| Project: | Views |
| Version: | 6.x-3.x-dev |
| Component: | node data |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi, i create an exposed filtered view 2 exposed filters, one a textbox to enter a word and the other exposed filter a combobox filled with a taxonomy list. When the user enter the data in the first field, it search a value match in a cck field, the second filter, search in a taxonomy term, every works ok, but if the user don´t write in the first exposed filter the view show all nodes, I need that the view show a text or at least nothing if you don´t write in the first exposed filter.
I have tries every single option, even tried to combine with arguments, but i can´t find a way.
Excuse my English please.
Comments
#1
This can be performed used the plugin "on demand" for exposed forms. See #535868: Exposed forms as plugins This feature is not part of views, but you can help to test it.
#2
It is now possible with views 3.
#3
At last, this was a very asked functionality in the earlies versions, and (I think) a not very difficult to implement.
As the 3.x version is still in alpha1, I'm going to wait (at least) to the dev version, since I need it in a productive site. I mean it's a multisite installation with almost 20 subsites, the half of then use views, I can take the chance, to test an alpha version, there.
Excuse my English please
#4
It was harder to implement than you think, clearly. I'm always a little bit disturbed when people say this. Generally when things are truly easy to implement, and there is no compelling reason not to implement it, it gets implemented; if not by me, then by someone interested in providing a patch. By phrasing it this way, you have inadvertantly suggested that we are being somehow mean or malicious (or at least negligent) by not having done so.
Also, it is not in 3.0-alpha1, only in the 3.x dev version, and I agree you should not actually implement it on a live site. There is a workaround for this kind of behavior where you can use a NULL argument and PHP argument code to check to see if the exposed filter is populated. I can't remember where, but there is an article around it. Hopefully doing a search on drupal.org will turn up the method.
#5
I´m sorry if I make it sound like you didn't want to make the patch or include the functionality in the updates versions, JUST BECAUSE YOU DIDN´T WANT, that clearly wasn't my intension. Excuse me again.
When I said that not very difficult to implement, i said (I think). I have been working in PHP and MySQL since 2001, and in my way I just check if the are no arguments passed by GET, and then not to raise the mysql query, of course in the real (programmings) world, things are always more complicate that seems at first look.
Im sure you are quite right, i apologize again. You are making a great job with the module.
Excuse my English please
#6
Automatically closed -- issue fixed for 2 weeks with no activity.