Hi,

Can any one work in YUI Slider module with Views filter exposed option, is it possible to implement to get like attached image.

CommentFileSizeAuthor
Slider.JPG3.73 KBlavanyadotr

Comments

pounard’s picture

This 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.

pounard’s picture

The 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 ?

pounard’s picture

I 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.

pounard’s picture

Status: Active » Closed (won't fix)

I 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...