Thanks for the very nice module!
However, I have a small but annoying problem: trying to use sliders as Views Exposed Filters for an integer field, I can't set the default value. It's always in the minimum value. I have set the default values I want in the content type field settings and they are recalled fine in the node submission form. But the default values in the Views Filters are still at the minimum values, and if I try to set another default value, it isn't remembered.

Comments

mniku created an issue.

RdeBoer’s picture

Hi mniku,
I have no time to look into this in the next few days.
But maybe somebody else has.
Rik

NiEd’s picture

Hi,

I'm quite new to drupal. But for the website I'm working on this issue is signficant. So, I tried to find the mistake. I found something that might help you to solve it: in file slide_with_style_handler_filter_numeric.inc there is the line $default = $min; and that's exactly the problem! It always takes the min value and not the default value! I changed it and it works.

I hope that helps!

Nik

RdeBoer’s picture

Thanks NiEd!
Rik

Toki’s picture

Hi,

I have the exact same issue with a Views filter (slide with style) which default value is always the minimum value.
The view results are not filtered through this slider filter but I also used a Views selective filter (dropdown menu) for a second field and it shows only values from nodes where the slider filter value is this minimum value (I hope it is clear^^)
@NiEd How did you modify the line $default = $min; so this slider filter does not interact with other filters or anything else when you first open the view ?
Thanks.

Toki

EDIT : to be more specific, the slider filter is related to an integer field and I need to use a "between" operator (for exemple, default values should be 4-40 and as $default=$min, I have 4-4 by default. Consequently the selective filter is built with this 4-4 range and does not show all field values)