我想插入一个新的特定内容元素作为内联元素.外表是tt_content.
如果我这样做,我会得到所有选项(ctype下拉等)
是否可以预先选择内容元素(ctype)并阻止用户在内联编辑中更改内容元素?
'children' => [
'exclude' => 0,
'label' => 'LLL:Label',
'config' => [
'type' => 'inline',
'foreign_table' => 'tt_content',
'foreign_field' => 'parent'
]
],
Run Code Online (Sandbox Code Playgroud)
您可以像这样更改默认值,perhabs您也可以覆盖默认调色板
'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,
'
),
),
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1020 次 |
最近记录: |