简体   繁体   English

Typo3 Gridelements-安装不起作用

[英]Typo3 Gridelements - setup not working

I'm using Typo3 7.6.10 with Gridelements 7.0.5. 我在Gridelements 7.0.5中使用Typo3 7.6.10。 I'm trying to wrap the gridelement output with the following code but the wrapping is not working. 我正在尝试使用以下代码包装gridelement输出,但是包装不起作用。 Both files are loaded. 这两个文件都已加载。 The 2-cols-50-50 element is available in the backend and the static gridelements template is loaded. 后端提供2-cols-50-50元素,并且已加载静态gridelements模板。 The content of the gridelement is displayed without the wrap defined in the gridelements.ts file. 显示的gridelement内容未在gridelements.ts文件中定义换行。

I would be happy for every help. 我会很乐意为您提供帮助。

tsconfig.ts tsconfig.ts

tx_gridelements {
    overruleRecords = 1
    setup {
        2-cols-50-50 {
            title = 2-Columns
            description = 2-columns contentelement
            topLevelLayout = 0
            config {
                colCount = 2
                rowCount = 1
                rows {
                    1 {
                        columns {
                            1 {
                                name = Left
                                colPos = 11
                            }
                            2 {
                                name = Right
                                colPos = 12
                            }
                        }
                    }
                }
            }
        }
    }
}

gridelements.ts gridelements.ts

tt_content.gridelements_pi1.20.10.setup >
tt_content.gridelements_pi1.20.10.setup {
    2-cols-50-50 < lib.gridelements.defaultGridSetup
    2-cols-50-50 {
        columns {
            11 < .default
            11.wrap = <div class="left">|</div>
            12 < .default
            12.wrap = <div class="right">|</div>
        }
        wrap = <div class="well">|</div>
    }
}

I found the mistake. 我发现了错误。 The static gridelements template has to be included before the extension template. 在扩展模板之前,必须包含静态网格元素模板。 Otherwise the static template overwrites tt_content.gridelements_pi1 . 否则,静态模板将覆盖tt_content.gridelements_pi1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM