如何创建 Typo3 的自定义模板 bootstrap_package
How to create custom template of Typo3 bootstrap_package
我是 typo3 的新手。我在某处阅读
You should never edit the original templates of an extension as those changes will vanish if you upgrade the extension
如何基于 bootstrap_package 扩展创建我自己的自定义模板?我想覆盖 parital/layout 中的一些文件。如果有人能postlike/tutorial就好了。
为我的自定义神庙实现 bootstrap_package 的文件夹结构和简单的自定义拼写错误会很有帮助。
bootstrap 软件包开发人员已经为此添加了一些内容。可以设置存储模板的不同位置。它还使用后备解决方案,这意味着如果找不到模板,它将从扩展中获取原始模板。
在fileadmin目录下创建一个目录,例如fileadmin/templates/BootstrapPackage
。在此目录中,创建目录 "Templates"、"Layouts" 和 "Partials".
在 TYPO3 后端,转到根页面的常量编辑器,select 一切如截图所示:
将字段 "Layout/Partial/Template Root Path" 设置为您新创建的目录 (fileadmin/templates/BoostrapPackage/Layouts|Partials|Templates)。保存并清除缓存。
现在您可以创建新模板了。如果你放置一个完全命名的文件,就像它在 bootstrap_package/Resources/Private/(Layouts/Partials/Templates)/Page/
中的命名一样,TYPO3 将使用新模板。
我是 typo3 的新手。我在某处阅读
You should never edit the original templates of an extension as those changes will vanish if you upgrade the extension
如何基于 bootstrap_package 扩展创建我自己的自定义模板?我想覆盖 parital/layout 中的一些文件。如果有人能postlike/tutorial就好了。 为我的自定义神庙实现 bootstrap_package 的文件夹结构和简单的自定义拼写错误会很有帮助。
bootstrap 软件包开发人员已经为此添加了一些内容。可以设置存储模板的不同位置。它还使用后备解决方案,这意味着如果找不到模板,它将从扩展中获取原始模板。
在fileadmin目录下创建一个目录,例如fileadmin/templates/BootstrapPackage
。在此目录中,创建目录 "Templates"、"Layouts" 和 "Partials".
在 TYPO3 后端,转到根页面的常量编辑器,select 一切如截图所示:
将字段 "Layout/Partial/Template Root Path" 设置为您新创建的目录 (fileadmin/templates/BoostrapPackage/Layouts|Partials|Templates)。保存并清除缓存。
现在您可以创建新模板了。如果你放置一个完全命名的文件,就像它在 bootstrap_package/Resources/Private/(Layouts/Partials/Templates)/Page/
中的命名一样,TYPO3 将使用新模板。