Php 输入3 TCA语法到FlexForm语法

Php 输入3 TCA语法到FlexForm语法,php,typo3,Php,Typo3,我有以下xml:不是我的完整xml。选择之后,我定义了一些设置,比如OrderBy、pid等 <el> <switchableControllerActions> <TCEforms> <label>Select function</label> <onChange>reload</onChange> <config> <type>select<

我有以下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>
我想做的是为每个视图指定一些设置,而不将这些设置应用于每个视图。例如,在列表视图上,我希望有单个视图的设置页面,但不希望有详细信息或导入视图的设置页面。我找到了这个文档:但是我很难将它转换为FlexForm语法

感谢您的帮助

编辑:

在@Bernd Wilkeπφ为我指明了正确的方向之后,我找到了问题的解决方案。就是这样:

<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>

您需要特定设置的播放条件

<pidSingle>
    <TCEforms>
        <label>Page for the single views</label>
        <displayCond>FIELD:el:=:1</displayCond>
        <config>
            <type>input</type>
            <eval>trim</eval>
        </config>
    </TCEforms>
</pidSingle>