Active
Project:
Measured Value Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2013 at 12:15 UTC
Updated:
6 Oct 2013 at 20:44 UTC
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
Comment #1
bucefal91 commentedHi, 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.
Comment #2
bucefal91 commentedwhoups.. forgot to switch it to "code".
Comment #3
bucefal91 commentedComment #4
g76 commentedthanks!
Comment #5
mpv commentedCan you please update the module description to reflect this? It says the module supports ranges, but actually only version 6.x supports them.
Comment #6
generalredneckIn 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.