首页 > 解决方案 > 如何在流体内容元素中获取 TYPO3 backend_layout 的值?

问题描述

我需要backend_layout在我的fluid content element.

通过<f:debug />我得到我的价值page template,但不是在content element.

标签: typo3typoscriptfluidfluid-styled-content

解决方案


尝试在“页面”的设置打字稿中设置以下内容:

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


推荐阅读