typo3 - 如何在流体内容元素中获取 TYPO3 backend_layout 的值?
问题描述
我需要backend_layout
在我的fluid content element
.
通过<f:debug />
我得到我的价值page template
,但不是在content element
.
解决方案
尝试在“页面”的设置打字稿中设置以下内容:
page {
# e.g. inside your page template "10"
10 = FLUIDTEMPLATE
10 {
# ...
variables {
# access this with {layout} in your fluid templates
layout = TEXT
layout {
data = levelfield:-2,backend_layout_next_level,slide
override {
field = backend_layout
}
}
}
}
}
推荐阅读
- arrays - React Native - 我如何找到一个数组中的一个值是否与另一个数组中的一个值匹配?
- c - 从方法中设置#define 值
- sql - 游标可以在执行时带参数传递吗
- android - 应用程序未在 android 4.4 中运行
- java - JMS 侦听器和 Oracle 数据源的 Atomikos 事务问题 - 引发的 XID -4:提供的 XID 对此 XA 资源无效
- git - Jenkins Pipeline 与 Azure Web 应用部署
- angular - 在Angular5中路由后价值丢失
- docker - .NET Core - Path.Combine 中的文件路径在 Docker 中不起作用
- c++ - “释放你的功能”方法:IDE 可以提供提示吗?
- python - 从 requirements.txt 安装时出现“没有名为 numpy 的模块”错误