Project

General

Profile

Actions

Feature #17297

closed

Extend TCEFORM_confObj on Page TSconfig by property keepItems

Added by Oliver Hader almost 17 years ago. Updated over 13 years ago.

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

0%

Estimated time:
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)


Files

0005610_v3.patch (7.31 KB) 0005610_v3.patch Administrator Admin, 2008-01-16 00:03
0005610_v4.patch (7.44 KB) 0005610_v4.patch Administrator Admin, 2008-01-30 19:21
0005610_docChanges.txt (583 Bytes) 0005610_docChanges.txt Administrator Admin, 2008-01-30 19:21
0005610_v5.patch (7.5 KB) 0005610_v5.patch Administrator Admin, 2008-12-30 12:09

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #19799: Undefined method t3lib_TCEforms_inline::addItemsClosedOliver Hader2009-01-12

Actions
Actions #1

Updated by Oliver Hader about 16 years ago

Attached a new patch for the current Trunk.

Actions #2

Updated by Oliver Hader about 16 years ago

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

Actions #3

Updated by Oliver Hader about 15 years ago

Committed to SVN Trunk (rev. 4630)

Actions

Also available in: Atom PDF