1.2.0releasedIncremental Number Field

A field that automatically increments it's value by one for each new entry in a section.

Clone URLhttps://github.com/designermonkey/incremental_number.git

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

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.02.7.12.7.22.7.32.7.42.7.52.7.6
NoNo1.0.01.1.01.2.01.2.01.2.01.2.01.2.01.2.01.2.01.2.01.2.01.2.0

Readme

Incremental Number Field

A field that automatically increments it's value by one for each new entry in a section.

1. Installation

  1. Upload the /incremental_number folder in this archive to your Symphony /extensions folder.
  2. Go to 'System → Extensions' in your Symphony admin area.
  3. Enable the extension by selecting 'Field: Incremental Number', choose 'Enable' from the 'With Selected…' menu, then click 'Apply'.

2. Usage

  1. Add the field type 'Incremental Number' to a section of your choice.
  2. Define a valid 'Start Number' for the field (has to be a natural number, e.g. 0 or 1).
  3. Now each time you create an entry in this section the 'Incremental Number'-field will automatically get populated by fetching the 'Incremental Number'-value of the previous entry and incrementing it by 1. If there is no previous entry in the section the field will instead get populated with the given 'Start Number'.
  4. You can't manually edit the values of an 'Incremental Number Field' – they're read-only.

Version history

Symphony 2.4.0 to 2.x.x

  • Code cleanup & reformatting
  • Improved Readme & fixed Meta
  • PHP 7.0 compatibility
  • Symphony 2.6 & 2.7 compatibility #8
  • Added field settings validation #9

Symphony 2.3.0 to 2.6.x

  • Cleanup & Symphony 2.3 compatibility.

Symphony 2.2.0 to 2.2.x

  • Initial release