1.7.1releasedNumber Field

Dedicated number storage

Clone URLhttps://github.com/symphonycms/numberfield.git

Add as a submodulegit submodule add https://github.com/symphonycms/numberfield.git extensions/numberfield --recursive

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.02.6.12.6.22.6.32.6.42.6.52.6.62.6.72.6.82.6.92.6.102.6.11
No1.5.11.5.11.61.6.11.7.11.7.11.7.11.7.11.7.11.7.11.7.11.7.11.7.11.7.11.7.11.7.11.7.1

Readme

Number Field

Input field that provides built-in number validation and numeric sorting.

Installation

  1. Upload the 'numberfield' folder in this archive to your Symphony 'extensions' folder.
  2. Enable it by selecting the "Field: Number", choose Enable from the with-selected menu, then click Apply.
  3. You can now add the "Number" field to your sections.

Datasource Filtering

The number field provides two additional datasource filtering methods:

Range filtering

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

Less than or greater than

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.

Version history

Symphony 2.5 to 2.6.x

  • Set 'entry_id' as unique

Symphony 2.5 to 2.6.x

  • Support Symphony 2.5+

Symphony 2.3.2 to 2.4.x

  • Update ImportableField support
  • Add Russian language
  • Add support for filtering using symbols, <, >, <= and >=

Requires Symphony 2.3

  • Symphony 2.3 compatibility

Symphony 2.1.0 to 2.2.x

  • README updates to describe available datasource filtering
  • Implement processRawFieldData function

Symphony 2.1.0 to 2.2.x

  • New filtering support which is safer and more powerful. X to B, equal to or less than X, less than X and their greater than variants are now included thanks to @jonathanh32. Old datasource filters will not work and will need to be resaved.
  • Minor code tidy up

Requires Symphony 2.1.0