Slug¶
type => 'slug' // TCA
alternativeSql: false
The Slug
type generates a slug field, which generates a unique string
for the record.
Settings¶
- eval¶
- Required
false
- Type
string
unique
,uniqueInSite
oruniqueInPid
.
- generatorOptions¶
- Required
false
- Type
array
Options related to the generation of the slug. Keys:
- fields (array)
An array of fields to use for the slug generation. Adding multiple fields to the simple array results in a concatenation. In order to have fallback fields, a nested array must be used.
Example:
generatorOptions: fields: - header
For more advanced configuration refer to the TCA documentation.