Skip to content

Filtering

Roman Klein edited this page Mar 1, 2016 · 1 revision

Slider Field – Filtering

1) Filter Modes

  1. is
  2. less than *
  3. greater than
  4. between
\* Version 0.2 uses the term "**smaller than**" instead. This syntax is marked as **deprecated** and won't be supported in future major releases of this extension.

2) Filtering Syntax

The above mentioned filter modes can be used in the following ways:

Filter Mode Filter String (Example)
is 0
is 1, 2
is 1 + 2
is {$param}
is {$param-a}, {$param-b}
less than less than 10 or < 10
less than less than {$param} or < {$param}
greater than greater than 0 or > 0
greater than greater than {$param} or > {$param}
greater than + less than greater than 1 + less than 100
greater than + less than greater than {$param} + less than {$param}
between 0 to 100 or 0-100
between {$param} to 100 or {$param}-100
between {$param-a} to {$param-b} or {$param-a}-{$param-b}
between 0 to 1, 9 to 10 or 0-1, 9-10
between 0 to 1 + 9 to 10 or 0-1 + 9-10
Tip: You can give your parameters a default fallback value by using the `{$param:XY}`-syntax.

2.1) Combining Filters

  • OR : Multiple filter conditions delimited by , will return true if one the conditions is met.
  • AND : Multiple filter conditions combined by a + will return trueif all of the conditions are met.

3) Filtering Logic

Entries filtered by slider field will be returned as result …

  • ... if the entry's slider defines a single value and a single filter value is equal to that value.
  • ... if the entry's slider defines a single value that lies within a range of filter values.
  • ... if the entry's slider defines a value range and a single filter value is within that range.
  • ... if the entry's slider defines a value range that lies within a range of filter values.
Clone this wiki locally