Skip to content

Instantly share code, notes, and snippets.

@Bjoelin
Created August 19, 2016 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bjoelin/d103402743bc208bffe4c4ea01d49721 to your computer and use it in GitHub Desktop.
Save Bjoelin/d103402743bc208bffe4c4ea01d49721 to your computer and use it in GitHub Desktop.
TYPO3 - TCA Input Field Rendering Example - Side by Side Select Fields
'ps_blog_tags' => array(
'exclude' => 0,
'label' => 'LLL:EXT:xxx/Resources/Private/Language/locallang_db.xlf:tx_xxx_domain_model_post.tags',
'config' => array(
'type' => 'select',
'renderType' => 'selectMultipleSideBySide',
'foreign_table' => 'tx_xxx_domain_model_tag',
'MM' => 'tx_xxx_post_tag_mm',
'size' => 10,
'autoSizeMax' => 30,
'maxitems' => 9999,
'multiple' => 0,
'wizards' => array(
'_PADDING' => 1,
'_VERTICAL' => 1,
'edit' => array(
'module' => array(
'name' => 'wizard_edit',
),
'type' => 'popup',
'title' => 'Edit',
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' => 'height=550,width=580,status=0,menubar=0,scrollbars=1',
),
'add' => Array(
'module' => array(
'name' => 'wizard_add',
),
'type' => 'script',
'title' => 'Create new',
'icon' => 'add.gif',
'params' => array(
'table' => 'tx_xxx_domain_model_tag',
'pid' => '###CURRENT_PID###',
'setValue' => 'prepend'
),
),
),
),
),
@Bjoelin
Copy link
Author

Bjoelin commented Aug 19, 2016

has 2 additional wizards for adding and editing existing objects / items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment