我构建了一个简单的注释 extbase 扩展,我想将它与打字稿一起包含在项目扩展(也是 extbase)中。项目扩展中的流体代码如下所示:
<f:for each="{project.reports}" as="report">
...Content...
{report -> f:cObject(typoscriptObjectPath: 'lib.comments')}
</f:for>
“报告”是一个 id 数组。lib.comments 排版如下所示:
lib.comments = USER
lib.comments {
userFunc = tx_extbase_core_bootstrap->run
extensionName = Comments
pluginName = Comments
persistence.storagePid = ?
}
StoragePid 应该与报告 id 匹配,所以我尝试了: persistence.storagePid.cObject = TEXT persistence.storagePid.cObject.current = 1
但它不起作用。有谁知道,将“当前”设置为 storagePid 的正确方法是什么?