[英]TYPO3 v8.5 with Fluidtemplate and fluid-styled-content - Partials not working
I use TYPO3 v8.5 with fluid-templating (with layout, partials and template) and fluid-styled-content. 我使用TYPO3 v8.5与流体模板(布局,局部和模板)和流体风格的内容。 However, as soon as I create a fsc-element eg text&media on my site, the partial files are ignored and only the section from the template file is output in the FE. 但是,只要在我的站点上创建fsc元素(例如文本和媒体),就会忽略部分文件,并且只在FE中输出模板文件中的部分。 If I set the content-element to "hide", then the correct site-structure with partials were output in the FE. 如果我将content-element设置为“hide”,那么在FE中输出具有partials的正确站点结构。
My root-template is:
page = PAGE
page.includeCSS {
main = fileadmin/Demo/Resources/Public/Css/main.css
}
page.10 = FLUIDTEMPLATE
page.10 {
layoutRootPaths {
10 = fileadmin/Demo/Resources/Private/Layouts
20 = fileadmin/Demo/Individual/Private/Layouts
}
partialRootPaths {
10 = fileadmin/Demo/Resources/Private/Partials
20 = fileadmin/Demo/Individual/Private/Partials
}
templateRootPaths {
10 = fileadmin/Demo/Resources/Private/Templates
20 = fileadmin/Demo/Individual/Private/Templates
}
variables {
contentMain < styles.content.get
}
file.stdWrap.cObject = CASE
file.stdWrap.cObject {
key.data = pagelayout
default = TEXT
default.value = fileadmin/Demo/Resources/Private/Templates/DefaultTemplate.html
pagets__1 < .default
}
}
My page-TSconfig:
mod.web_layout.BackendLayouts {
1 {
title = Default Template
config {
backend_layout {
colCount = 1
rowCount = 1
rows {
1 {
columns {
1 {
name = Main Content
colPos = 0
}
}
}
}
}
}
}
}
DefaultLayout.html :
<f:render partial="Header"/>
<f:render section="Main"/>
<f:render partial="Footer"/>
Footer.html :
<div class="footer-container">
<footer class="wrapper">
Hier steht der Footer-Text
</footer>
</div>
Header.html :
<div class="header-container">
<header class="wrapper clearfix">
<h1 class="title">LOGO</h1>
<nav>
Hier erscheint die Navigation
</nav>
</header>
</div>
DefaultTemplate.html :
<f:layout name="DefaultLayout"/>
<f:section name="Main">
<div class="main-container">
<div class="main wrapper clearfix">
<article>
<f:format.raw>{contentMain}</f:format.raw>
</article>
</div>
</div>
</f:section>
Does anyone know this behavior and can give me a tip what's wrong with my code. 有没有人知道这种行为,并可以给我一个提示我的代码有什么问题。 In TYPO3 v7.6 this code works fine. 在TYPO3 v7.6中,此代码工作正常。
There is currently an open bug (see https://forge.typo3.org/issues/77235 ) regarding this issue. 目前有关于此问题的漏洞(请参阅https://forge.typo3.org/issues/77235 )。 Try to rename your Partials as a workaround until this is fixed. 尝试将Partials重命名为变通方法,直到修复此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.