Closed (won't fix)
Project:
YUI Form elements
Version:
6.x-1.0
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 May 2009 at 12:45 UTC
Updated:
3 May 2009 at 19:44 UTC
Hi,
Can any one work in YUI Slider module with Views filter exposed option, is it possible to implement to get like attached image.
| Comment | File | Size | Author |
|---|---|---|---|
| Slider.JPG | 3.73 KB | lavanyadotr |
Comments
Comment #1
pounardThis is a great idea! I'll try to look at views's hooks.
I don't promise any result before some time, I'll really busy right now, please feel free to try it and send patches anytime you want.
Comment #2
pounardThe fact is I don't really know how could I override a views default widget to make him use my own. The fact is the slider is a generic element and could be used for any integer or float value.
May be we could develop our own views filters, but I don't think this is right.
So, there are some different solutions to look at:
* A potential views hook that let us override exposed for widget (if it exists);
* May be a form alter ? Then let the user configure it, but, it's not really user friendly;
* Any other solution ?
* Adding a widget using CCK's hook, which might be the most elegant solution; but it will work only with CCK fields.
Any ideas ?
Comment #3
pounardI found a lot of stuff googling, I think I'd prefer provide a snippet rather than a patch, because I found a lot of snippets to change a widget (using THEME_[form_id]_preprocess() and MODULE_form_alter() to do this, which are quite small and comprehensive.
Comment #4
pounardI set it as won't fix. I'm OK with any patch or suggestion if someone find a clean and maintenable way to do this.
EDIT: you might want to read this: http://stackoverflow.com/questions/451745/drupal-views2-exposed-form-how...