Feature #17297

Extend TCEFORM_confObj on Page TSconfig by property keepItems

Added by Oliver Hader over 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-05-11
Due date:
% Done:

0%

PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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)

0005610_v3.patch View (7.31 KB) Administrator Admin, 2008-01-16 00:03

0005610_v4.patch View (7.44 KB) Administrator Admin, 2008-01-30 19:21

0005610_docChanges.txt View (583 Bytes) Administrator Admin, 2008-01-30 19:21

0005610_v5.patch View (7.5 KB) Administrator Admin, 2008-12-30 12:09


Related issues

Related to TYPO3 Core - Bug #19799: Undefined method t3lib_TCEforms_inline::addItems Closed 2009-01-12

History

#1 Updated by Oliver Hader almost 12 years ago

Attached a new patch for the current Trunk.

#2 Updated by Oliver Hader almost 12 years ago

Attached a new patch which changes 'filterItems' to 'keepItems' as requested in the Core List.

#3 Updated by Oliver Hader almost 11 years ago

Committed to SVN Trunk (rev. 4630)

Also available in: Atom PDF