Oftentimes it would be nice when using the advanced (custom) ranges to provide a nice human readable label. Especially when using the * wildcard, as currently with settings like this on a price facet:

0-100
100-*

you might get facets that look like this:

£0-£100
£100-£

Which obviously isn't great. It would be good to be able to provide a nice string to use instead.

Patch to follow!

Comments

stevetweeddale’s picture

With this patch, you can optionally now enter a pipe delimited label for each range, such as this:

0-100|Less than £100
100-300
300-*|£300 and up

If no label is provided (as in the second range) behaviour remains as it currently is. This might render facets (link widgets) like this:

Less than £100 (x)
£100-£300 (x)
£300 and up (x)

I also took the liberty of improving the expanding (and I think improving!) the readme documentation for doing this, including how to use the new label feature.

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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