[英]TYPO3 hide colPos for IRRE tt_content
當按照文檔<\/a>中的說明添加自己的內容元素,然后實現所謂的 IRRE(內聯類型)元素時,可以將其存儲在未使用的 colPos 中,例如 99:
$newTCAcolumns[] = [
'xxx_cta_blocks' => [
'exclude' => 1,
'label' => 'Content',
'config' => [
'type' => 'inline',
'allowed' => 'tt_content',
'foreign_table' => 'tt_content',
'foreign_sortby' => 'sorting',
'foreign_field' => 'xxx_foreign',
'minitems' => 1,
'maxitems' => 3,
'appearance' => [
'collapseAll' => true,
'expandSingle' => true,
'levelLinksPosition' => 'bottom',
'useSortable' => true,
'showPossibleLocalizationRecords' => true,
'showRemovedLocalizationRecords' => true,
'showAllLocalizationLink' => true,
'showSynchronizationLink' => true,
'enabledControls' => [
'info' => false,
]
],
'behaviour' => [
'allowLanguageSynchronization' => true,
],
'overrideChildTca' => [
'columns' => [
'colPos' => [
'config' => [
'default' => 99
]
],
'CType' => [
'config' => [
'default' => 'xxx_cta_block'
]
],
]
],
],
]
這似乎只在頁面 TSconfig 中有效,而在用戶 TSconfig 中不再有效:
mod.SHARED.colPos_list
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.