Typo3 FE和BE相同的PID

时间:2015-01-20 15:08:02

标签: typo3 typoscript typo3-6.2.x

我的Typo3 BE-Modul总是将带有PID 1的数据写入数据库。在另一个安装上它使用PID11。所以我必须配置FE-Plugin来读取正确的PID。如何将两者配置为在每台计算机上始终使用相同? 我的Typoscript:

plugin.tx_rere {
    view {
        templateRootPath = {$plugin.tx_rere.view.templateRootPath}
        partialRootPath = {$plugin.tx_rere.view.partialRootPath}
        layoutRootPath = {$plugin.tx_rere.view.layoutRootPath}
    }
    persistence {
        storagePid = {$plugin.tx_rere.persistence.storagePid}
    }
    features {
        # uncomment the following line to enable the new Property Mapper.
        # rewrittenPropertyMapper = 11
    }
}
module.tx_rere {
    persistence {
        storagePid = {$modul.tx_rere.persistence.storagePid}
    }
    view {
        templateRootPath = {$module.tx_rere.view.templateRootPath}
        partialRootPath = {$module.tx_rere.view.partialRootPath}
        layoutRootPath = {$module.tx_rere.view.layoutRootPath}
    }
}

谢谢!

1 个答案:

答案 0 :(得分:0)

在模板模块中打开常量编辑器 - 你的ext应至少有2个位置:

PLUGIN.TX_RERE

MODULE.TX_RERE

为两者设置有效Default storage PID