我遇到了extbase/fluid擴展創建的奇怪問題。 我使用TYPO3 6.1TYPO3 Extbase後端模塊。模板路徑問題
我已經在我的開發服務器(相同的配置/硬件,然後產品)後端模塊進行了擴展。該模塊工作完美地與路徑模板:
myext /資源/個人/後端/模板
myext /資源/個人/後端/佈局
myext /資源/個人/後端/局部模板
在此之後,我在ext管理器中下載了我的擴展的zip文件,然後在prod服務器上安裝了安裝程序。現在我無法使用我的擴展,因爲模塊找不到模板。 我以相同的方式配置了擴展名。模板處於正確的路徑。
我考到我的文件夾移動到上一層:
myext /資源/個人/模板
myext /資源/個人/佈局
myext /資源/私有/局部模板
有了這個它可以工作,但在模塊配置中,我指定了「Backend /」文件夾的正確路徑。
我不會移動我的文件夾在私人文件夾中,我希望它在私人/後端文件夾中運行。
我已將擴展靜態模板包含到網站根TS模板中。
這裏的常數:
module.tx_myext {
view {
# cat=module.tx_myext/file; type=string; label=Path to template root (BE)
templateRootPath = EXT:wng_myext/Resources/Private/Backend/Templates/
# cat=module.tx_myext/file; type=string; label=Path to template partials (BE)
partialRootPath = EXT:wng_myext/Resources/Private/Backend/Partials/
# cat=module.tx_myext/file; type=string; label=Path to template layouts (BE)
layoutRootPath = EXT:wng_myext/Resources/Private/Backend/Layouts/
}
persistence {
# cat=module.tx_myext//a; type=string; label=Default storage PID
storagePid =
}
}
而這裏的設置:
module.tx_myext {
persistence {
storagePid = {$module.tx_myext.persistence.storagePid}
}
view {
templateRootPath = {$module.tx_myext.view.templateRootPath}
partialRootPath = {$module.tx_myext.view.partialRootPath}
layoutRootPath = {$module.tx_myext.view.layoutRootPath}
}
}
我已經添加了我的靜態模板到網站根模板。我已更新我的問題 –
您是否檢查是否使用TS設置?您可以通過使用TS對象瀏覽器(在模板模塊中)來做到這一點 – fnagel
是的。所有加載完美...:s –