Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

insert specific tt_content element as irre ('type' => 'inline')

Tags:

typo3

I would like to insert a new specific content element as an inline element. The foreign table would be tt_content.

tt_content as irre

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'
        ]
    ],

enter image description here

like image 554
dependent Avatar asked Dec 19 '22 13:12

dependent


1 Answers

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,
                 '
            ),
        ),
like image 67
bschauer Avatar answered Dec 21 '22 01:12

bschauer