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

编程入门 行业动态 更新时间:2024-10-27 10:34:05
本文介绍了TYPO3 ver.: 8 如何正确自定义felogin扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

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

提前致谢!丹尼斯

解决方案

对于 TYPO3 ver.: 10.x 可以在 TypoScript 模板的 Setup 字段中设置

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

I would like to customize felogin (frontend lofin) extension template. I would like to copy the template file inside of my template extension folder, but I don´t know how to change the path with TypoScript, so Typo3 can look first into the template file which is located inside of my extension template folder.

Thanks in advance! Denis

解决方案

For TYPO3 ver.: 10.x it could be set in Setup field of your TypoScript template as well.

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

这篇关于TYPO3 ver.: 8 如何正确自定义felogin扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-29 09:07:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1187550.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   如何正确   ver   felogin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!