Typo3 tspage-config:访问FlexForm-XML失败

发布于 2025-01-28 10:04:44 字数 1772 浏览 5 评论 0原文

我在一个项目中使用bootstrap_package,但问题与访问tt_content的flexform-databse-column中的XML中的felements有关(typo3 v11)。 假设我有一个带有项目的card_group元素,我尝试了:

TCEFORM {
    tt_content {
        pi_flexform.bootstrap_package {
            sDEF.lDEF.align.disable = 1
            lDEF.align.disable = 1
            sDEF.align.disable = 1
            align.disable = 1
            sDEF.lDEF.columns.removeItems = 4,2,1
            lDEF.columns.removeItems = 4,2,1
            sDEF.columns.removeItems = 4,2,1
            columns.removeItems = 4,2,1
        }
        pi_flexform.tx_bootstrappackage {
            sDEF.lDEF.align.disable = 1
            lDEF.align.disable = 1
            sDEF.align.disable = 1
            align.disable = 1
            sDEF.lDEF.columns.removeItems = 4,2,1
            lDEF.columns.removeItems = 4,2,1
            sDEF.columns.removeItems = 4,2,1
            columns.removeItems = 4,2,1
        }
    }
}

我的结果应该是:

  • field card_groups->选项 - >对编辑器应限制
  • card_groups->选项 - >仅

在card_groups上的任何提示 /工作示例和 /或通过TSCONFIG正确访问pi_flexform-fields的任何提示 /工作示例将不胜感激。

现有元素的pi_flexform柱的XML看起来像:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
    <data>
        <sheet index="sDEF">
            <language index="lDEF">
                <field index="align">
                    <value index="vDEF">center</value>
                </field>
                <field index="columns">
                    <value index="vDEF">3</value>
                </field>
            </language>
        </sheet>
    </data>
</T3FlexForms>

任何提示和/或帮助。

谢谢你,

i use the bootstrap_package in one project, but the problem is related to accessing felements within the xml in the flexform-databse-column of tt_content (Typo3 v11).
Assuming i have a card_group element with items in it, i tried:

TCEFORM {
    tt_content {
        pi_flexform.bootstrap_package {
            sDEF.lDEF.align.disable = 1
            lDEF.align.disable = 1
            sDEF.align.disable = 1
            align.disable = 1
            sDEF.lDEF.columns.removeItems = 4,2,1
            lDEF.columns.removeItems = 4,2,1
            sDEF.columns.removeItems = 4,2,1
            columns.removeItems = 4,2,1
        }
        pi_flexform.tx_bootstrappackage {
            sDEF.lDEF.align.disable = 1
            lDEF.align.disable = 1
            sDEF.align.disable = 1
            align.disable = 1
            sDEF.lDEF.columns.removeItems = 4,2,1
            lDEF.columns.removeItems = 4,2,1
            sDEF.columns.removeItems = 4,2,1
            columns.removeItems = 4,2,1
        }
    }
}

My result should have been:

  • Field card_groups -> options -> align should be hidden for editors
  • Restrict card_groups -> options -> columns to "3" only (as an example)

Any hint / working example on card_groups and/or accessing pi_flexform-fields properly by tsConfig would be highly appreciated.

The XML of the pi_flexform-column of an existing element looks like:

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
    <data>
        <sheet index="sDEF">
            <language index="lDEF">
                <field index="align">
                    <value index="vDEF">center</value>
                </field>
                <field index="columns">
                    <value index="vDEF">3</value>
                </field>
            </language>
        </sheet>
    </data>
</T3FlexForms>

Any hint and/or help is highly appreciated.

Thank you, Th.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文