在 TYPO3 TCA 中,如果没有所有接口选项,可以使用“内联”类型来实现类似的功能。以下是如何在没有所有接口选项的情况下使用“内联”类型的步骤:
'my_field' => [
'exclude' => 0,
'label' => 'My Field',
'config' => [
'type' => 'inline',
'foreign_table' => 'my_foreign_table',
'foreign_field' => 'parent_id',
'appearance' => [
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
],
],
],
'my_field' => [
'exclude' => 0,
'label' => 'My Field',
'config' => [
'type' => 'inline',
'foreign_table' => 'my_foreign_table',
'foreign_field' => 'parent_id',
'appearance' => [
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
],
],
],
'my_field' => [
'exclude' => 0,
'label' => 'My Field',
'config' => [
'type' => 'inline',
'foreign_table' => 'my_foreign_table',
'foreign_field' => 'parent_id',
'appearance' => [
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
],
],
],
'my_field' => [
'exclude' => 0,
'label' => 'My Field',
'config' => [
'type' => 'inline',
'foreign_table' => 'my_foreign_table',
'foreign_field' => 'parent_id',
'appearance' => [
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
],
],
],
'my_field' => [
'exclude' => 0,
'label' => 'My Field',
'config' => [
'type' => 'inline',
'foreign_table' => 'my_foreign_table',
'foreign_field' => 'parent_id',
'appearance' => [
'collapseAll' => 1,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'showAllLocalizationLink' => 1,
],
'minitems' => 1,
'maxitems' => 10,
],
],
通过以上步骤,您可以在没有所有接口选项的情况下使用“内联”类型来实现类似的功能。
领取专属 10元无门槛券
手把手带您无忧上云