Because LISE isn't using min/max for filtering, just a list of matches, it won't be straight forward to pass the min/max parameters to the filter function.
A method I used on one project was to pass those min/max values to my results template, and only include items that were within those parameters. It's not the most efficient if there's thousands of items, but on this project it worked really well.
I used Foundation's slider, but the theory is the same. The search form uses:
Code: Select all
<div class="slider" data-slider data-start="{$min}" data-initial-start="{$smarty.post.size_min|default:$min}" data-initial-end="{$smarty.post.size_max|default:$max}" data-end="{$max}" data-step="100">
And the results page uses:
Code: Select all
{if ($item->fielddefs.size.value >= $smarty.post.size_min|default:'0' && $item->fielddefs.size.value <= $smarty.post.size_max|default:'999999') || $item->fielddefs.size.value==''}
You can see it in action at
https://www.zri.nl/projecten, click on "Filteren"