Skip to content
/ slider Public

A slider field for Symphony CMS that can either be used with a single handle (select a single value) or with two handles (select a value range).

License

Notifications You must be signed in to change notification settings

twiro/slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symphony CMS : Slider Field

A slider with a configurable value range (minimum – maximum, e.g. 0100) that can either be used with a single handle (select a single value, e.g. 50) or with two handles (select a value range, e.g. 4050).

Symphony CMS Slider Field - Publish Area UI

1. Installation

  1. Upload the /slider folder in this archive to your Symphony /extensions folder.
  2. Go to the System > Extensions in your Symphony admin area.
  3. Enable the extension by selecting the 'Slider Field', choose 'Enable' from the 'With Selected…' menu, then click 'Apply'.
  4. You can now add the 'Slider' field to your sections.

2. Configuration

Parameters

  • Minimum value * : Determines the lower end of the sliders number range.
  • Maximum value * : Determines the upper end of the sliders number range.
  • Start value * : Determines the initial value of the slider and therefore the position of the (first) handle. 1
  • Incremental value : Determines the amount/interval the slider changes on movement. 2
  • Enable range mode : Determines whether the slider will use one or two handles. 3
* Mandatory parameters.
1) It goes without saying that this value should be in the range defined by the first two configuration parameters.
2) The full specified value range of the slider (minimum – maximum) should be evenly divisible by this value. Default is `0`.
3) One handle allows for selecting and storing a single value. Two handles allow for selecting and storing a range of values.

Limitations

  • The field currently only supports natural numbers (0,1,2,3,…) as values for 'Minimum value', 'Maximum value', 'Start value and 'Incremental value'.
  • There is no parameter to set a default 'End value' when using the slider in range mode. The predefined range will consist of the 'Start value' and a second value that's automatically calculated by adding the 'Incremental value' to the 'Start value'.

3. Filtering

Filter Modes

  1. is
  2. less than 1
  3. greater than
  4. between
1) 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.

Filtering Syntax

Documentation and examples regarding the filtering syntax can be found in the extension's github wiki.

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.

4. Acknowledgements

This extension was originally developed by Giel Berkers for Twisted Interactive.

About

A slider field for Symphony CMS that can either be used with a single handle (select a single value) or with two handles (select a value range).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published