[英]TYPO3 TCA Syntax to FlexForm Syntax
I have the following xml: (Not my complete XML. After the selection, i have defined some settings, like OrderBy, pid etc ) 我有以下xml :(不是我的完整XML。选择之后,我定义了一些设置,例如OrderBy,pid等)
<el>
<switchableControllerActions>
<TCEforms>
<label>Select function</label>
<onChange>reload</onChange>
<config>
<type>select</type>
<items>
<numIndex index="0">
<numIndex index="0">List View</numIndex>
<numIndex index="1">MyExt->list;MyExt->show</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">Detail View</numIndex>
<numIndex index="1">MyExt->show</numIndex>
</numIndex>
<numIndex index="5">
<numIndex index="0">Import</numIndex>
<numIndex index="1">--div--</numIndex>
</numIndex>
<numIndex index="10">
<numIndex index="0">User Import</numIndex>
<numIndex index="1">MyExt->import</numIndex>
</numIndex>
</items>
<types>
<numIndex index="0">
<showItem index="0">orderBy</showItem>
<showItem index="1">orderBy</showItem>
</numIndex>
</types>
</config>
</TCEforms>
<switchableControllerActions>
</el>
What i would like to do, is to specify some settings to each view without these settings to be applicable to every view. 我想做的是为每个视图指定一些设置,而这些设置不适用于每个视图。 For example, on the list view, i would like to have the setting "Page for the single view" but not on the detail or import view.
例如,在列表视图上,我希望设置“单个视图的页面”,但在详细视图或导入视图上没有。 I found this documentation: Documentation but i have difficulties to convert it to FlexForm syntax.
我找到了以下文档: 文档,但是我很难将其转换为FlexForm语法。
Any help is appreciated. 任何帮助表示赞赏。
EDIT: 编辑:
After @Bernd Wilke πφ showed me the right direction i found the solution to my problem. @Bernd Wilkeπφ向我显示了正确的方向后,我找到了解决问题的方法。 This is it:
就是这个:
<pidSingle>
<TCEforms>
<label>Page for the single views</label>
<displayCond>FIELD:switchableControllerActions:=:MyExt->list;ImmobilieImport->show</displayCond>
<config>
<type>input</type>
<eval>trim</eval>
</config>
</TCEforms>
</pidSingle>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.