Last active
December 11, 2018 02:54
-
-
Save fedir/5567237 to your computer and use it in GitHub Desktop.
TYPO3 : Autocomplete suggest wizard for TCA field definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# TYPO3 => TCA | |
# suggest wizzard pattern | |
# in tca.php | |
$TCA['table'] = array( | |
'columns' => array( | |
'field' => array( | |
'exclude' => 1, | |
'label' => 'BE Field Label', | |
'config' => array( | |
'type' => 'select', | |
'foreign_table' => 'table', | |
'foreign_table_where' => 'AND table.pid=###CURRENT_PID### ORDER BY table.uid', | |
'size' => 2, | |
'minitems' => 0, | |
'maxitems' => 2, | |
'wizards' => array( | |
'suggest' => array( | |
'type' => 'suggest', | |
), | |
), | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment