1.5.2releasedUnique Text Input Field

Force unique handles

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

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

Compatibility

2.x.x2.1.x2.2.x2.3.x2.4.x2.5.x2.6.x2.7.0
1.31.41.41.5.21.5.21.5.21.5.21.5.2

Readme

Field: Unique Text Input

Makes the value's handle unique across the section

Installation

  1. Upload the /uniqueinputfield folder to your Symphony /extensions folder.

  2. Enable it by selecting the "Field: Unique Text Input", choose Enable from the with-selected menu, then click Apply.

  3. You can now add the "Unique Text Input" field to your sections.

Usage

  • Behaves identically to a normal text input, however it enforces uniqueness of the handle and you cannot group the output in Data Sources.

  • Two modes allow you to choose between throwing an error, "This must be unique", or attempting to make the handle unique automatically by appending an number, eg. my-entry-handle-2

Version history

Symphony 2.3 to 2.x.x

  • Updated documentation and description to better represent the actual behavior

Symphony 2.3 to 2.x.x

  • Updated for Symphony 2.6 compatibility

Requires Symphony 2.3

  • Updated for Symphony 2.3 compatibility
  • Field now extends the core Input field, for greater flexibility and consistency

Symphony 2.0.6 to 2.2.x

  • Updated for Symphony 2.2 compatibility

Requires Symphony 2.0

  • Fixed logic behind automatically creating unique handles.