[TYPO3-core] RFC #8785: Bug: TCAselectItem not working for all tables

Sebastian Michaelsen sebastian.gebhard at gmail.com
Sat Aug 14 00:51:48 CEST 2010


This is an SVN patch request.

Type: Bug

Bugtracker references: http://bugs.typo3.org/view.php?id=8785

Branches: trunk

Problem:
Mostly the stdWrap feature TCAselectItem. is not working for tables, which come from own extensions. 
The TCA columns are not included.

Solution:
Load the columns with t3lib_div::loadTCA($table)

Notes:
In the BT Benni said, that this should be done by tslib_fe, but tslib_fe->includeTCA() says: "To 
load full TCA for the table, use t3lib_div::loadTCA($tableName) after calling this function." So I 
think t3lib_div::loadTCA($table) is ok.

How to test:

* Install TemplaVoilá
* Run following TS:
page.20 = TEXT
page.20.value = 1
page.20.TCAselectItem {
     table = tx_templavoila_datastructure
     field = scope
     delimiter = ,
}

You should get "Page Template".

Kind regards,
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8785_v1.diff
Type: text/x-diff
Size: 608 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100814/ab4ad642/attachment.diff>


More information about the TYPO3-team-core mailing list