Download & Extend

EhibitView: add numeric valueType for fields which have a numeric handler

Project:Exhibit
Version:6.x-1.0-beta1
Component:Facets
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

i have a view for my custom module, where i have a numeric field. In order to use the Slider facet, the valueType for this field must be set to "number". For CCK fields the value type is set, as far as i can see, but non-cck fields not.

For me this hack works for now:

in file: views_plugin_style_exhibit_json.inc - add this lines at line 80

if ($field instanceof views_handler_field_numeric)
$props[$id]['valueType'] = 'number';

would be great if someone with more clue about this module could, enhance this solution (if needed) and provide a patch!

thank you very much!

have a nice day!
walter

Comments

#1

+1

I've run into the same situation a few times. I also wonder if there's a way to define the field valuetype through the View UI. There are times when I've used CCK text fields for geographic coordinates, dates, and other non-string items.

nobody click here