Hi,
thank you so much for your module, it's wonderful! I have a content type "Tree", where I need to have both the height and width fields to define a From/To value(i.e. height is between 20' to 30'). I also need these ranges to be searchable in views. I am not sure how to correctly do this, could you step me through it?

thanks so much,
Jen

Comments

bucefal91’s picture

Title: How to create ranged TO/FROM field(s) » Add ranges TO/FROM for MVF 7.x
Category: support » feature

Hi, Jen!

In my turn I need to thank for checking out the module. Unfortunately I need to tell that 7.x version right now does not support ranges of values, it only supports 1 value - that's the reason you couldn't set it up that way. I know 6.x has the feature of ranges, but for 7.x I haven't done that and it wasn't among my urgent priorities.

I am marking this as a feature request, because it's yet to be implemented.

bucefal91’s picture

Title: Add ranges TO/FROM for MVF 7.x » How to create ranged TO/FROM field(s)
Component: Documentation » Code

whoups.. forgot to switch it to "code".

bucefal91’s picture

Title: How to create ranged TO/FROM field(s) » Add ranges TO/FROM for MVF 7.x
g76’s picture

thanks!

mpv’s picture

Can you please update the module description to reflect this? It says the module supports ranges, but actually only version 6.x supports them.

generalredneck’s picture

In thinking about this... couldn't you accomplish something simular with the following...

On your Content type, Add 2 different fields, one a From field and the other a Two Field.

You should be able to then set up a view that has exposed filters with the operator exposed... allowing the user to search for items between specified heights.

If you are looking for a way to enter a single height and add a search for it, you could always use a form that sets an agurment for the view and two computed field fields. Set your filters to computer the difference between the argument supplied and the To and From fields. If the Argument - the To Field is Greater than or equal to 0 and the From field - the Argument is >= 0 ((arg(1) - TO) >= 0 AND (FROM - arg(1)) >= 0) then you would be between the 2 heights.

This is just a suggestion for the problem at hand many months later... but it might help someone.