Typo3 tspage-config:访问FlexForm-XML失败
我在一个项目中使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论