Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I would love for my users to have the ability to filter search results by tags. Now there are loads of tags to begin, so perhaps a way to narrow them down in a less obtrusive way may be to provide a dropdown list of checkboxed terms that narrows as the search is refined by other filters. Then, as certain terms become more important then others, the results are filtered by those.
Alternatively, is there another way to help filter through a bunch of nodes someone can recommend?
Comment | File | Size | Author |
---|---|---|---|
#21 | multiselect checkboxes widget.JPG | 23.72 KB | jmartinezlopez |
Comments
Comment #1
drunken monkeyThis is an issue in the Facet API (and possibly a duplicate as well) which provides all the UI used for facetting.
Comment #2
cpliakas CreditAttribution: cpliakas commentedThe language suggests two types of UI components. Could you please clarify, and if possible post a screenshot or sketch of what you are thinking?
Thanks,
Chris
Comment #3
stopshinal CreditAttribution: stopshinal commentedHere is a screenshot of what i'm shooting for.
With my primary concern identified in Black.
As shown in Pink, am also interested in the ability to add a 'filter tag by keyword term'. But his comes second, as I hope other filters will naturally narrow down tag options.
Comment #4
cpliakas CreditAttribution: cpliakas commentedThanks for sharing! Great diagram, and I think this is a wonderful UI component. I would actually be open to adding this to Facet API core since it is very user friendly, however I don't see myself having the time to work on it in the near future.
This could be accomplished by creating a separate widget. It definitely could exist as a stand-alone project similar to the Collapsible Facets module. That is a great example of how to create a widget and roughly the amount of code that would be required to do so.
I'm not sure what your level of experience is with coding custom modules, however what you outlined doesn't look very difficult to accomplish. if you want to code up the module, I can provide guidance on how to do so.
Thanks,
Chris
Comment #5
stopshinal CreditAttribution: stopshinal commentedChris I appreciate your support and enthusiasm. I'm not very seasoned in the way of module dev. I haven't the slightest experience developing widgets for the search api (would it be for search api, just like facets/sorts/ranges are available). But if you can point me in a direction with a few helpful hints and perhaps examples to research, we may be able to get this off the ground.
Justin
Comment #6
cpliakas CreditAttribution: cpliakas commentedLet me see what I can dig up. You might also want to follow #1307296: Implement a widget that displays facets via the jQuery plugin "Chosen" as it seems similar in scope.
Comment #7
cpliakas CreditAttribution: cpliakas commentedThe best resource for how to work with the API is this blog post by Yuriy Gerasimov. It explains how to greate display widgets with code samples.
Thanks,
Chris
Comment #8
cpliakas CreditAttribution: cpliakas commentedAdding to the Contrib component, which means that I am looking for this functionality to be added outside of this module in a separate contrib.
Comment #9
cpliakas CreditAttribution: cpliakas commentedComment #10
cpliakas CreditAttribution: cpliakas commentedMoving over to Facet API Extra for consideration.
Comment #11
rooby CreditAttribution: rooby commentedI came across a couple of jQuery plugins, relevant to this, which look pretty awesome.
http://code.google.com/p/dropdown-check-list/
- Which would require running version 1.3 of the plugin with the jquery_update module.
- There is also a good chance of getting jQuery 1.7 in the not too distant future - see #1386294: Release jQuery 1.7 for Drupal 7 - in which case the latest version of the plugin could be used.
http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/
- Which would require the jquery_update module.
Maybe the select list implementation at http://drupal.org/sandbox/lynn/1311040 could support multiple select using that plugin?
And maybe that sandbox could be integrated into this module or else it could become a full project of its own? (I'm not sure what you want the scope of this module to be).
This is exactly what I need so I will most likely investigate implementing it in some way.
My goal down the line is to have a meta block of facets, with a select list of available (enabled) facets, which can be added by the user.
To keep the block to a minimum size this widget would be ideal.
Comment #12
thedosmann CreditAttribution: thedosmann commentedDon't know if you found anything on this but look here
http://www.trellon.com/content/blog/apachesolr-and-facetapi
Comment #13
thedosmann CreditAttribution: thedosmann commentedI'm trying to creete a search environment where a user can select facets enter a key word or pharse and search in that filter setup. solr search allows this as only after the search and has no filtering for and- or- not- searches. I want a search that allows filtering when a user searches and will also allow filtering on those results. Custom search comes close because it ties into core but is not well integrated with solr so it does not hook into the solr data like search api facets. The search solr api looks like a close match to start with but it is not well developed in integration with search api in data structure. So far a lot of looking and testing but no luck.... I'm starting to think I may have to just do some hacking. Custom search would be great if it hooked into search api facets. The ground work seems to have been done but no one, that I have found so far, has tied it up together. Display suite has a good edge but alas no good solr integration with seach api solr environment.
Comment #14
rooby CreditAttribution: rooby commentedThe code at http://drupal.org/sandbox/lynn/1311040 already provides the select widget.
I'm using that and it works.
It just doesn't support multiple values in a dropdown of check boxes fashion.
It would be great to get that sandbox integrated into this module or make it a full project.
I would rather be using a full project than a sandbox project.
Comment #15
ygerasimov CreditAttribution: ygerasimov commentedMoving issue to Facet API Bonus module.
Comment #16
STNyborg CreditAttribution: STNyborg commentedHas anyone had any luck with making the facet more user friendly as shown in the examples above?
Regards,
Svend
Comment #17
cpliakas CreditAttribution: cpliakas commentedSTNyborg,
Can you highlight which links you are referring to? This thread has gotten a bit long :-)
Thanks,
Chris
Comment #18
STNyborg CreditAttribution: STNyborg commentedChris,
Sorry for that. You are right. This thread is but long!
I was referring to #3 and #11.
// Svend
Comment #19
David_Rothstein CreditAttribution: David_Rothstein commentedJust wanted to point out that I posted a module which provides the multiple select functionality: Facetapi Multiselect
Comment #20
cpliakas CreditAttribution: cpliakas commentedCool! Very clean coding, can't wait to try it out. Added a link to the module on Facet API's project page.
Thanks!
Chris
Comment #21
jmartinezlopez CreditAttribution: jmartinezlopez commentedI'm already developing this widget to share with all that need something similar. I let screenshot of my current development progress :)
Comment #22
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commented@jmartinezlopez : are you still working on such Widget? Would be great if we could add it to "FacetAPI Bonus" module :)
Comment #23
thePanz CreditAttribution: thePanz at Liip for FREITAG lab. AG commentedFurthermore: how is your addition different from the Facetapi-MultSelect (https://www.drupal.org/project/facetapi_multiselect) module?
Comment #24
DanieleN CreditAttribution: DanieleN commentedSo, for your interest;
I implemented Facetapi-MultSelect with the JS-Library Select2 to tree https://github.com/clivezhg/select2-to-tree and it works like a charm
for Multiselect, Nesting and Searchfield Widget