Bug #79069
openAllows to add/remove --div-- in pageTsConfig
0%
Description
Hi,
With the methods addItemsFromPageTsConfig/removeItemsByRemoveItemsPageTsConfig (TYPO3\CMS\Backend\Form\FormDataProvider), it is possible to add/remove items to a select column.
Actually it is possible to deal only with one separator(--div--) like this : TCEFORM.table.field.addItems.--div-- = Separator
If I try to add another separator, the first one is overriden.
I purpose to change the syntax like in the extension "news". To add a separator, the syntax must be like this : TCEFORM.table.field.addItems.10 = --div--,Separator
In addition an item with this syntax TCEFORM.table.field.addItems.--div-- = Separator
must be by passed.
The same must be set when removing items with removeItems, I purpose a syntax like this : TCEFORM.table.field.removeItems = 10, 20,--div--|Separator
(the name of the --div-- after the pipe).
Finally, if items are sets directly in the TCA and an item is added with the same key in pageTsConfig, the item is added instead of override the TCA item (the result is a select box with same values). This muste be avoided.
Thanks
Updated by Benni Mack almost 8 years ago
- Target version changed from 8.6 to 8 LTS
Updated by Susanne Moog almost 7 years ago
- Category changed from Backend API to FormEngine aka TCEforms
- Target version changed from 9.0 to Candidate for Major Version
Updated by Daniel Kern almost 4 years ago
- Target version deleted (
Candidate for Major Version) - TYPO3 Version changed from 8 to 10
This problem still persists today in TYPO3 11 after nearly four years and it's pretty annoying that there is no way to add dividers via TCEFORM
.
Why not simply allowing to append items like done in items
property when creating a field in TCA
? Somehow like this:
TCEFORM.tt_content.tx_my_field {
addItems {
0 = {
0 = label 1
1 = value 1
}
1 = {
0 = label 2
1 = value 2
}
}
}
Or maybe add another property like icon
for value
too:
TCEFORM.tt_content.tx_my_field {
addItems {
0 = label 1
0.value = value 1
1 = label 2
1.value = value 2
}
}
Updated by Benni Mack 4 months ago
Check out if this might be of interest to you https://github.com/b13/pagetsconfig