Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active December 11, 2018 02:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/5567237 to your computer and use it in GitHub Desktop.
Save fedir/5567237 to your computer and use it in GitHub Desktop.
TYPO3 : Autocomplete suggest wizard for TCA field definition
<?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