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.

CommentFileSizeAuthor
#1 1175566-1.patch1.89 KBpwolanin

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new1.89 KB
pwolanin’s picture

Or - perhaps we (also?) need a way to define which widgets can work with which query types?

cpliakas’s picture

I 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.

pwolanin’s picture

Yes, right - it falls back to the realm default

pwolanin’s picture

Status: Needs review » Fixed

committed #1 - obviously the widget conditions/requirements is a bigger discussion.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.