Feature #17297
closedExtend TCEFORM_confObj on Page TSconfig by property keepItems
0%
Description
In Page TSconfig there are currently these possibilities to manipulate the items of a select field:
TCEFORM.<table>.<field> {
addItems.123 = new item
removeItems = 234,456
}
This works only relatively to a given set of items. It is not possible with these both methods to set/filter the items exactly to a predefined set.
The solution is a new feature "filterItems" - all other (available!) values which are not defined in the "filterItems" are cut off.
Example:
TCEFORM.<table>.<field>.keepItems = 110,101,111
Documentation changes:
Insert in doc_core_tsconfig, Page TSconfig, section TCEFORM_confObj, before property "removeItems":
Property:
keepItems
Data type:
list of values
Description:
Reduce/filter a given set of elements to fit the condition defined here.
Example:
TCEFORM.pages.doktype {
keepItems = 1,2,255
}
(issue imported from #M5610)
Files
Updated by Oliver Hader almost 17 years ago
Attached a new patch for the current Trunk.
Updated by Oliver Hader almost 17 years ago
Attached a new patch which changes 'filterItems' to 'keepItems' as requested in the Core List.