Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-3.0-rc6
Component:
Code - Taxonomy Views
Priority:
Critical
Category:
Task
Assigned:
Reporter:
Created:
6 Nov 2008 at 19:00 UTC
Updated:
4 Dec 2008 at 01:12 UTC
I think this is a great module, and its the main reason I restarted my project using d5 instead of d6. When I first installed and patched views it all worked smoothly.
Now i can't get rid of the dropbox function in an exposed views filter. I am clicking "Configure Hierarchical Select" in the views configuration / exposed filters, then i tick off the dropbox and save both HS config and views config.
Can anyone help me? Many thanks!
Comments
Comment #1
wim leersIt's assumed that if you enable it for the vocabulary, that you then also want to enable it for the exposed filters.
In modules/taxonomy_views.module:
This is the first time I've seen somebody who didn't like this behavior. You could of course disable it for the vocabulary to get rid of it in the view. But I doubt that's what you want?
Comment #2
jooel commentedThanks for helping!
It's a bit strange. I have disabled dropbox everywhere i can find it, but it still appears in exposed view.
For some reason i get this error msg sometimes (in views and HS config):
warning: preg_match() expects parameter 2 to be string, array given in C:\Program\wamp\www\bf\includes\bootstrap.inc on line 684.
Maybe this could be what's ruining it? Could i try someway to reinstall HS (and maybe views) completely clean, without anything lying around in the database?
I am commenting row 81 to get the result i want:
// $form["filter$id"]['#config']['dropbox']['status'] = !((bool) $view->exposed_filter[$id]['single']);
Comment #3
wim leersYou can find all your HS configs at admin/settings/hierarchical_select/configs. That might help. You must be overlooking *something*.
That error message is not very relevant since I don't know what Drupal version you're using … :)
Reinstalling HS/Views shouldn't make a difference.
Comment #4
jooel commentedI am using the latest drupal 5.12.
Dropbox is disabled in all configs (node form and views exposed filters, in my case), but still showing up in views exposed filters.
I got the dirty trick working so this probably won't bother me anymore, but if you need me to help troubleshooting I'd be glad to.
Comment #5
wim leersAh, hah, right! That line you commented has the solution :)
You must set the "Force Single" setting if you don't want to use the dropbox. It's obvious to most people, but I guess that needs to be documented more clearly.
Comment #6
wim leersComment #7
jooel commentedForce single in views config? That option says "This setting is now managed by the Hierarchical Select widget configuration!" and if i tick it that change isn't saved when saving the view. I can't find a "force single" option anywhere else. Hmm..
Comment #8
associate commentedJust to add I'm having the same issue.
Comment #9
DiversiCon commentedSame issue, dropbox shows in view exposed filter regardless of settings and I cannot change the "Force Single" setting in the view exposed filter configuration. Fantastic solution to a difficult problem, keep up the good work.
Comment #10
wim leersRight, my bad, I looked at a view that wasn't managed by HS… Sorry. Yes, this works crappily and yes it's super confusing, but no, there is no other way. :(
However, I will change how it works, because now it's just WAY too confusing/error prone. Changing the HS config will automatically update the View in the database. Stay tuned :)
Comment #11
wim leersReady! Please get the latest tarball and report bugs if there are any!