【问题标题】:Is it possible to create your own columns in the TYPO3 back-end是否可以在 TYPO3 后端创建自己的列
【发布时间】:2015-03-18 12:44:50
【问题描述】:

在 TYPO3 CMS 中,我们默认设置了左、正常、右和边框列。是否可以在 BE 中创建自己的列?

【问题讨论】:

    标签: typo3 fluid typo3-6.2.x


    【解决方案1】:

    请转到列表视图并单击新元素

    应该有可用的后端布局

    加入类似的配置

    backend_layout {
      colCount = 3
      rowCount = 3
      rows {
            1 {
                columns {
                    1 {
                       name = oben
                       colPos = 10
                       colspan = 3
                    }
                }
            }
            2 {
                columns {
                    1 {
                       name = linke Spalte
                       colPos = 0
                    }
                    2 {
                       name = mittlere Spalte
                       colPos = 1
                    }
                    3 {
                       name = rechte Spalte
                       colPos = 2
                    }
                }
            }
            3 {
                columns {
                    1 {
                       name = unten
                       colPos = 11
                       colspan = 3
                    }
                }
            }
        }
    } 
    

    我认为这是如何使用行和列的一个很好的例子

    然后转到您要使用此布局的页面转到页面 --> 编辑并选择布局

    您在我的示例中看到我有 colPos = 11 示例

    要从 colPos = 11 获取内容,您需要告诉模板

    index.html:

    <div class="wrapper">
        <div class="col9 last contentInner">
            <f:cObject typoscriptObjectPath="lib.title" />
            <f:format.raw>{normaleseitecolpos0}</f:format.raw>
        </div>
    </div> 
    

    这是你的流体模板

    第一个 &lt;f:cObject .... 链接到您可以在 setup.ts 中使用的库

    第二个&lt;f:format.raw.... 链接到与colpos 相关的变量

    如果您将其添加到 setup.ts

    page {
        10 = FLUIDTEMPLATE
        10 {
            file = fileadmin/templates/knowhow/layout/index.html
                    variables {
                # Einspalter
                normaleseitecolpos0 < styles.content.get
                normaleseitecolpos0.select.where = colPos = 11
            }
        }
    } 
    

    【讨论】:

    • 有一个很好的向导来创建配置。另外,在 PAGE 中,您可以选择不同的带有 CASE 的模板,如果您需要,请告诉我
    • @Urs 好吧,请随意添加您自己的答案或提交博客文章的链接。我们需要更多关于 TYPO3 的英文内容。 :)
    猜你喜欢
    • 1970-01-01
    • 2020-06-19
    • 1970-01-01
    • 2013-11-24
    • 2015-03-02
    • 2016-02-08
    • 2015-07-01
    • 2016-01-17
    • 1970-01-01
    相关资源
    最近更新 更多