Examples¶
Slug field¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_slugs.php¶
[
'columns' => [
'slug_1' => [
'exclude' => 1,
'label' => 'slug_1',
'description' => 'field description',
'config' => [
'type' => 'slug',
'generatorOptions' => [
'fields' => [
'input_1',
'input_2',
],
'fieldSeparator' => '/',
'prefixParentPageSlug' => true,
'replacements' => [
'/' => '',
],
],
'appearance' => [
'prefix' => 'TYPO3\\CMS\\Styleguide\\UserFunctions\\FormEngine\\SlugPrefix->getPrefix',
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInSite',
'default' => '',
],
],
],
]
Another slug field¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_slugs.php¶
[
'columns' => [
'slug_2' => [
'exclude' => 1,
'label' => 'slug_2',
'config' => [
'type' => 'slug',
'size' => 50,
'generatorOptions' => [
'fields' => [
'input_1',
],
'fieldSeparator' => '/',
'prefixParentPageSlug' => true,
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInSite',
'default' => '',
],
],
],
]