extbase/fluid 拡張機能の作成で奇妙な問題が発生しています。TYPO3 6.1を使用しています
開発サーバーでバックエンド モジュールを使用して拡張機能を作成しました (製品と同じ構成/ハードウェア)。モジュールはテンプレートへのパスで完全に機能します:
myext/Resources/Private/Backend/Templates
myext/Resources/Private/Backend/Layouts
myext/Resources/Private/Backend/Partials
この後、拡張機能の zip を ext マネージャーにダウンロードし、インストーラーを製品サーバーにダウンロードしました。モジュールがテンプレートを見つけられないため、拡張機能を使用できません。同じ方法で拡張機能を構成しました。テンプレートは正しいパスにあります。
フォルダーを親レベルに移動することをテストします。
myext/Resources/Private/Templates
myext/Resources/Private/Layouts
myext/Resources/Private/Partials
これで動きますが、モジュールの設定で「Backend/」フォルダへの正しいパスを指定しています。
フォルダーを Private フォルダーに移動するのではなく、Private/Backend フォルダーで実行したい。
拡張静的テンプレートを Web サイトのルート 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}
}
}