Actions
Bug #79446
closedTCA Wizard Select
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-01-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
https://docs.typo3.org/typo3cms/TCAReference/AdditionalFeatures/WizardsConfiguration/Index.html#select-wizards
The "select" wizard's select-properties can be manipulated with the same number of TSconfig options which are available for "real" select-type fields in TCEFORM.[table].[field].
->
https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Select/Index.html#foreign-table-where
You can use markers in the WHERE clause: ...
The markers results in empty values!
Example:
'textfield' => array( 'config' => array( 'type' => 'text', 'cols' => 40, 'rows' => 5, 'eval' => 'trim', 'wizards' => array( 'suggest' => array( 'type' => 'select', 'mode' => 'prepend', 'foreign_table' => 'tx_extkey_domain_model_suggest', 'foreign_table_where' => ' AND tx_extkey_domain_model_suggest.type="textfield" AND tx_extkey_domain_model_suggest.sys_language_uid IN(-1,###REC_FIELD_sys_language_uid###) ORDER BY tx_extkey_domain_model_suggest.keyword', ), ) ), ),
results in
REC_FIELD_pid: '' (should be 3)
REC_FIELD_sys_language_uid: '' (should be 1)
CURRENT_PID:0 (should be 3)
Actions