我正在尝试为网页创建单独的模板,或者是单列结构,或者是双列结构。目前我的网页只有一个模板,放在根页面上,它被它的所有子页面使用。
但是,我在myextension/Resources/Private/Templates中找不到模板,因为这个文件夹是空的。模板在我的扩展中的什么位置,我应该在哪里添加替代模板?
发布于 2019-06-28 20:19:04
我猜你用的是"fluid_styled_template"?然后,这些模板位于相应的核心目录"Resources/Private“中。
如果你想操作它们,将它们复制到"Resources/Private/Extension/fluid_styled_content“中的sitePackage (这至少是一个推荐的放置方法),并覆盖"fluid_stlyed_content”提供的TypoScript。
发布于 2019-07-01 13:19:26
在TYPO3上下文中,template不是唯一的。我们有:
parts记录,也可能是包含在记录中的文件或
它们在中可以有所不同
- Marker-Templated. The old and less and less used kind with markers and subparts as placeholders for data defined in typoscript
- Fluid templates. The modern kind with control structures and data objects
使用statemant语句
我的网页只有一个模板,放在根页面上
不清楚你的意思是:
打字记录在pages -> typoscript templates
in the root page a template is selected中定义。这可能意味着HTML模板,也可能是fluid模板,因为路径myextension/Resources/Private/Templates与fluid模板的通常结构相匹配。假设fluid templates
在文件夹列表中搜索模板。此列表以typoscript形式管理。任何用法都有它自己的列表,你的主页/页面模板的列表可能在page.10.templatePaths。您可以在TSOB (Typoscript对象浏览器)中查找它
如果列表只包含一个条目,则只有基本配置。
由于每次访问模板(、部分、布局)时都会参考文件夹列表,并且仅采用文件夹中具有最高优先级的匹配名称的文件,因此您可以在列表中添加具有更高编号的文件夹,这样您就不需要更改原始文件(使用文件夹中的副本进行修改)或将文件添加到原始文件夹(在其他扩展名中)。
所以你需要两样东西:
(ext:myextension/Resources/Private/Templates听起来不错)
(例如page.10.templatePaths.20 = EXT:myextension/Resources/Private/Templates)
https://stackoverflow.com/questions/56806504
复制相似问题