Typo3 8.7.x / Extbase / Typoscript:如何设置storagePid以将新的自定义对象添加到tt_content(mm关系)

问题描述 投票:0回答:1

我扩展了我的tt_content表,以mm关系添加新的自定义对象。这工作正常,但我不想在同一页面添加新的自定义对象。我试过以下的打字错误,但它不起作用,有什么想法吗?

module.tx_myext {
    persistence {
        classes {
            MyVendor\MyExt\Domain\Model\Iconlink {
                newRecordStoragePid = 45
            }
        }
    }
}
php typo3 typoscript extbase typo3-8.x
1个回答
0
投票

请尝试以下代码

plugin.tx_myext {
  persistence {
    classes {
        MyVendor\MyExt\Domain\Model\Iconlink {
            newRecordStoragePid = 45
        }
    }
  }
}
© www.soinside.com 2019 - 2024. All rights reserved.