Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/designermonkey/incremental_number
Incrementing Number Field for Symphony CMS
https://github.com/designermonkey/incremental_number
symphony-cms symphony-cms-extension
Last synced: about 1 month ago
JSON representation
Incrementing Number Field for Symphony CMS
- Host: GitHub
- URL: https://github.com/designermonkey/incremental_number
- Owner: designermonkey
- License: other
- Created: 2011-05-14T16:55:11.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-01-29T18:24:02.000Z (almost 7 years ago)
- Last Synced: 2023-04-16T12:40:28.297Z (over 1 year ago)
- Topics: symphony-cms, symphony-cms-extension
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 6
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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.