Input field that provides built-in number validation and numeric sorting.
- Upload the 'numberfield' folder in this archive to your Symphony 'extensions' folder.
- Enable it by selecting the "Field: Number", choose Enable from the with-selected menu, then click Apply.
- You can now add the "Number" field to your sections.
The number field provides two additional datasource filtering methods:
You can easily filter by a numeric range on the number field on your datasource. Simply enter something like this:
10 to 20
This will return all entries that have a field value between 10 and 20. Spaces are optional.
Just like any other datasource filter, you can make these values dynamic:
{$url-lower-limit} to {$url-upper-limit}
This would let you pass through the upper and lower limit as url parameters. E.g. /products/?lower-limit=10&upper-limit=20
You can also use standard greater than or less than symbols in the filter value or you can use words. e.g.
> 20
greater than 20
This will return all entries that have a value greater than 20.
<= 20
equal to or less than 20
This will return all entries that have a value of 20 or less.