Project

General

Profile

Actions

Bug #79446

closed

TCA Wizard Select

Added by Peter Reichenbach almost 8 years ago. Updated over 7 years ago.

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 #1

Updated by Christian Kuhn over 7 years ago

  • Status changed from New to Rejected

rejected: this will not be fixed anymore in v7, in v8 the select wizard does not exist anymore and has been moved to a more simple 'valuePicker' that supports only static item lists.

Actions

Also available in: Atom PDF