我試圖用三個額外的日期(時間戳)字段擴展擴展(新聞),並想在我的(新聞)fluidtemplate中調用這些。TYPO3 Extbase擴展現有的擴展使用自己的擴展模型?
我已經連接了一切到目前爲止,我可以看到我的額外領域在後端沒有選擇extratype - 我已經modified ext_tables.php相應,並可以保存數據。
現在我試圖在我的局部模板/列表/ Item.html使用下面的代碼用在我的新聞fluidtemplate這些領域 - {} newsItem.datetime
我想我需要的TypoScript相適應的是,型號Tx_News_Domain_Model_News現在是
config.tx_extbase{
persistence{
classes{
Tx_News_Domain_Model_News {
className = MyVendor\MyNews\Domain\Model\New
}
MyVendor\MyNews\Domain\Model\News {
mapping {
tableName = tx_news_domain_model_news
recordType = Tx_MyNews_News
}
}
}
}
}
但是,這似乎並沒有工作 - 任何人誰在這裏得到了解決。