繁体   English   中英

Typo3 FE和BE是相同的PID

[英]Typo3 FE and BE same PID

我的Typo3 BE-Modul始终将PID为1的数据写入数据库。 在另一安装中,它使用PID11。 因此,我必须配置FE-Plugin来读取正确的PID。 如何将两者配置为在每台计算机上始终相同?
我的打字稿:

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}
    }
}

谢谢!

在模板模块中打开常量编辑器-您的扩展名至少应有2个位置:

PLUGIN.TX_RERE

MODULE.TX_RERE

为两个设置有效的Default storage PID

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM