I would like to insert a new specific content element as an inline element. The foreign table would be tt_content.
If I do that I am getting all the options (ctype drop down, etc.)
Is it possible have a content element (ctype) preselected and prevent the user from changing that in the inline editing?
'children' => [
'exclude' => 0,
'label' => 'LLL:Label',
'config' => [
'type' => 'inline',
'foreign_table' => 'tt_content',
'foreign_field' => 'parent'
]
],
You can change the default value like this, perhabs you could also override the default palette
'config' => array(
'type' => 'inline',
'foreign_table' => 'tt_content',
'foreign_field' => 'irre_multitab',
'foreign_record_defaults' => array(
'colPos' => '666',
'CType' => 'text'
),
'foreign_types' => array(
'header' => array(
'showitem' => '
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
'
),
),
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With