Closed (outdated)
Project:
Taxonomy Term Reference Tree Widget
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 May 2013 at 15:49 UTC
Updated:
2 Dec 2025 at 14:33 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidPatch that might not be ready (I'm admittedly not good at JS), but it worked for me.
Comment #2
JacksonBison commentedAppears to work, however I can't seem to enable it on a custom form...
I assume it should be
'#search' => 1,but it's not working...Comment #3
JacksonBison commentedCode doesn't quite work, and isn't picking up all matches.
Change:
var hasMatch = $(this).text().toLowerCase().indexOf(searchTerms) > 0;to:
var hasMatch = $(this).text().toLowerCase().indexOf(searchTerms) >= 0;Seems to fix the problem
Comment #4
osopolarFollowing the documentaion of indexOf() it makes sense to check for
>= 0:The patch fixes that and also adds a missing ";" and the class
term-reference-tree-filter-matchto be able to highlight the matching labels.Comment #5
pifagor commentedLook good
Comment #6
alex_optimThis patch is very old. Needs work.
Comment #7
sano commentedThaks for this. Attaching a re-rolled patch against the 7.x-1.x branch.
Comment #8
anybodyWould still be VERY useful for large taxonomies in Drupal 9+! I created a Drupal 9 issue: #3274396: Javascript live-filter functionality for widget results (for large taxonomies)
Comment #9
vladimirausThank you everyone for your contribution.
Drupal 7 is no longer supported but we always need support for Drupal 11 version.
Closing as outdated.