Actions
Feature #89875
openslug config options should be configurable via TSConfig
Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
Start date:
2019-12-06
Due date:
% Done:
0%
Estimated time:
PHP Version:
7.2
Tags:
slug backeend pages tca tceform
Complexity:
easy
Sprint Focus:
Description
I would recommend to make some of the slug field options configurable via TSCONFIG
At least one Change would be required in sysext/backend/Classes/Form/Utility/FormEngineUtility.php
protected static $allowOverrideMatrix = [
'input' => ['size', 'max', 'readOnly'],
'text' => ['cols', 'rows', 'wrap', 'max', 'readOnly'],
'check' => ['cols', 'readOnly'],
'select' => ['size', 'autoSizeMax', 'maxitems', 'minitems', 'readOnly', 'treeConfig'],
'group' => ['size', 'autoSizeMax', 'max_size', 'maxitems', 'minitems', 'readOnly'],
'inline' => ['appearance', 'behaviour', 'foreign_label', 'foreign_selector', 'foreign_unique', 'maxitems', 'minitems', 'size', 'autoSizeMax', 'symmetric_label', 'readOnly'],
'imageManipulation' => ['ratios', 'cropVariants'],
//NEW
'slug' => ['fallbackCharacter','generatorOptions','prependSlash']
];
This would result in an easy configuration of slug options via TSCONFIG f.e.
TCEFORM.pages.slug.config.fallbackCharacter=_
TCEFORM.pages.slug.config.generatorOptions.prefixParentPageSlug=0
Christoph
Updated by Benni Mack about 4 years ago
- Related to Feature #88322: Allow the overwriting of the slug field via PageTS added
Updated by Benni Mack about 3 years ago
- Status changed from New to Accepted
- Target version changed from Candidate for patchlevel to Candidate for Major Version
sounds reasonable
Actions