TYPO3 ver.: 8 如何正确自定义felogin扩展

0 typo3 typoscript typo3-8.x

我想自定义 felogin(前端 lofin)扩展模板。我想将模板文件复制到我的模板扩展文件夹中,但我不知道如何使用 TypoScript 更改路径,因此 Typo3 可以先查看位于我的扩展模板文件夹内的模板文件。

提前致谢!丹尼斯

Mat*_*ala 5

配置的完成方式与其他所有扩展一样:

plugin.tx_felogin_pi1 {
  templateFile = EXT:your_extension/Resources/Private/Templates/Felogin.html
}
Run Code Online (Sandbox Code Playgroud)

请注意,felogin 不使用 Fluid,如果您需要的话,您可能需要查看Hairu等替代品。


bie*_*ior 5

对于 TYPO3 版本:10.x它也可以在Setup您的 TypoScript 模板字段中设置。

plugin.tx_felogin_login {
  view {
    templateRootPaths.20 = EXT:your_extension/Resources/Private/Templates/
    partialRootPaths.20 = EXT:your_extension/Resources/Private/Partials/
    layoutRootPaths.20 = EXT:your_extension/Resources/Private/Layouts/
  }
}

Run Code Online (Sandbox Code Playgroud)