Range slider items don't appear in the facet summary

Created on 23 October 2018, almost 7 years ago
Updated 16 February 2023, over 2 years ago

Steps to reproduce:
- add a (range) slider facet
- enable the slider it in the facet summary block
- use the slider (min/max)

=> The min/max values don't appear in the facet summary

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇧🇪Belgium mpp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium vodde83

    #16 works great!

    However, I did notice the value suffix - and presumably, prefix - doesn't show up in the summary.
    My Facet has a suffix of 'm2', and the summary just shows '22 - 60'.

    While I don't care much about for example the seperator in between the min & max, I'd say adding the prefix and/or suffix to the summary makes sense.

  • 🇵🇪Peru alyaj2a

    The patch in comment #16 🐛 Range slider items don't appear in the facet summary Needs review works perfectly. Thank you.

  • First commit to issue fork.
  • Merge request !216Added the suffix and prefix → (Open) created by Carlitus
  • 🇪🇸Spain Carlitus

    I've made a MR to add the prefix and sufix to summary filter of range sliders.

  • Pipeline finished with Failed
    over 1 year ago
    Total: 865s
    #193484
  • 🇮🇳India Pramod Birla

    The patch in comment #16 works perfectly. Thank you.

    By default, the range slider facet only populates the display value with the min and max numbers e.g. 4-10 on selecting month 4 and 10, without including the facet's label.
    To fix this , you will need to implement -

    $facet_label = $facet->Label();
    $result_without_current_rangeslider = new Result($facet, "(min:$min,max:$max)", "$facet_label: $min - $max", 1);

Production build 0.71.5 2024