Looking a implementing the slider widget.
In general, it seems we would want to allow a given facet to specify a default widget that might be different from the one that's default for the realm.
E.g. if I have a price field, I might want to get the Slider widget as default OOTB.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1175566-1.patch | 1.89 KB | pwolanin |
Comments
Comment #1
pwolanin commentedComment #2
pwolanin commentedOr - perhaps we (also?) need a way to define which widgets can work with which query types?
Comment #3
cpliakas commentedI really like the idea in #1. So to clarify, if the facet doesn't have a default widget or the facet's widget is undefined, it falls back to the realm's default?
Regarding #2, we need to re-integrate a whole "widget conditions" and "widget requirements" system which included but is not limited to query types. For example, one requirement would be "query type is a range" so that a slider widget could be used. Another common use case is that form element widgets should be available for fieldset realms but not for block realms. The system in the 6.x version works but is confusing as hell. I would like to simplify it if possible.
Comment #4
pwolanin commentedYes, right - it falls back to the realm default
Comment #5
pwolanin commentedcommitted #1 - obviously the widget conditions/requirements is a bigger discussion.