Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
exposed filters
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2008 at 14:48 UTC
Updated:
13 Apr 2011 at 06:14 UTC
I think it'd be neat if you could have the option to do the Exposed Filter of the Node Title as an autocomplete - on the other hand, this may make more sense to have it as an exposed filter of the Node nid, since the final result submitted might be the nid? Just a suggestion for the future, and if I have the spare time I may try to do a patch on this myself.
Comments
Comment #1
moshe weitzman commentedOrganic groups would make happy use of this auto-complete.
Comment #2
Xabi commentedSubscribing! This would be a great feature for an exposed filter!
Comment #3
thommyboy commentedsubscribing! absolutely!
Comment #4
dawehnerSure this quite a cool feature.
It would be also quite easy to write, but not as abstract as it should, here are some thoughts of a more abstract thing.
The auto-completion is for a certain filter, so a method of this handler should be called, to generate the autocompletion.
This is called from a page callback defined in hook_menu of views.
This should be build similar to views_ajax, but not render/execute the view, but call a method of the specific handler.
Perhaps someone could post to this ideas
Comment #5
momper commentedsubscribe
Comment #6
peterjmag commentedI'm not actively using it, but I've had this bookmarked for a while, and it may help: http://drupal.org/project/finder
Comment #7
dagmarAs dereine said, this feature is not so simple to implement. Lets see if we can put this in views 3 in a near future.
Comment #8
nodecode commentedNot sure if this is the way to go about this but it looks like someone has done this before by creating their own Module to override some of the Views code. Maybe this can be used by the Views developers: http://drupal.org/node/179922
Comment #9
dawehnerAs i said above, its not the question about doing it, its the question of how to write it as abstract as needed.
Comment #10
YK85 commented+1 subscribing
Comment #11
Bilmar commented+1 subscribing - dereine mentioned this is similar request to one I just opened for taxonomy: term id auto-complete filter #743668: "Limit list to selected items" option for taxonomy term id autocomplete. I feel this would be greatly beneficial for users of Drupal + Views and hope it will make it into Views 3 =) Thank you
Comment #12
Starvin15 commentedThis would be great to have. Currently the only way I found to do this is through autocomplete on taxonomy term and assigning each of my nodes the taxonomy term equal to the node title. This is most certainly a very inefficient way of going about this.
Comment #13
operations commentedSubscribed..
I have a view that displays a cck exposed filters, to let the users do search on some fields like title, category, phone .. etc.
So, I need an autocomplete on some of the cck exposed fields. I tried the following modules:
http://drupal.org/project/finder
http://drupal.org/project/autocomplete_widgets
For the finder module I integrated it to work for the view. It worked in a brilliant way, but when I filled the database with 30,000 record or above.. it became slow and then throws the error (Allowed memory of ... exausted .. ), though I'm using a shared server and I guess for a dedicated it will work but not efficient.
For the autocomplete_widgets module, I'm unable to pull out the autocomplete method for the exposed fields, it can be used only when creating a node (adding autocomplete widgets for CCK fields of type).
Any suggestions? Help please!! I need to finish this within less than 1 week :)
Mohannad
Comment #14
operations commentedHi all,
I read this topic and did some coding and my autocomplete search worked perfectly:
http://web2make.com/content/drupal-autocomplete-node-title-and-image
Here is what i did,
In template.php i added this code:
By the way you can know the finder path as below:
After you create a finder and add an element to it (such as autocomplete Name field), go to the path of the finder (ex:- /finder/1).. search for any word, open the console in firefox.. then you will find the path of the ajax call (ex:- finder_autocomplete/autocomplete/2/3/word). ommit the /word and use the rest path.
Hope it will help :)
Mohannad
Comment #15
operations commentedComment #16
dagmarAs a support request, this should be marked as fixed.
But, as a feature request, there is no patch here, and therefore, status is active.
Comment #17
patcon commented+1 subscribing
Comment #18
mstrelan commented+1 subscribing
Comment #19
held69 commentedsubscribing
Comment #20
Isostar commented+1
Comment #21
Exploratus commentedWOW! +1
Comment #22
Exploratus commentedWill this work on the 2.x branch?
Comment #23
dzescsd commentedsubscribe
Comment #24
drupalnesia commentedWill this autocomplete should provided on Views 2?
Comment #25
dawehnerNope. Views2 is currently on a stable state, so new features get's only added to views3
Comment #26
vasikeplease check http://drupal.org/project/views_autocomplete_filters
maybe also will be integrated in views in a better way
Comment #27
dawehnerThere is a module for it, so this issue is fixed.
Comment #29
emosbaugh commentedhttp://drupal.org/project/views_autocomplete_filters only works for views 2. see code
if ('2' != substr(views_api_version(), 0, 1)) {
// Only continue for Views 2.x
return;
}
Comment #30
dagmar@emosbaugh: What are you trying to say with that?
Please fill an issue in the http://drupal.org/project/views_autocomplete_filters issue queue.
Comment #31
emosbaugh commentednevermind. i now see this is posted in the views issue queue. my mistake
Comment #32
merlinofchaos commentedThis queue is not responsible for whether or not contrib modules are updated. You can file an issue against that module.