TYPO3 Ext。 gridelements:从FlexForm中删除字段

时间:2017-09-18 15:02:16

标签: typo3 typo3-extensions tx-gridelements

使用页面TS中的TCEFORM,您可以从扩展插件中删除FlexForm字段,例如来自EXT:新闻:

TCEFORM.tt_content.pi_flexform.news_pi1.additional.settings\.detailPid.disabled = 1

上面的示例正在运行,但如何从gridelements FlexForm中删除字段?

这不起作用:

TCEFORM.tt_content.pi_flexform.gridelements_pi1.mySheet.myField.disabled = 1

更详细:

我使用EXT:bootstrap_grids,它提供FlexForm“flexform_2col.xml”。从这个FlexForm,我想禁用带有“lgCol1”和“lgCol2”字段的tab“largeDevices”:

<T3DataStructure>
    <sheets>
        [...]
        <largeDevices>
            <ROOT type="array">
                <TCEforms>
                    <sheetTitle>LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.sheet.largeDevices</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el type="array">
                    <lgCol1 type="array">
                        <TCEforms type="array">
                            <label>LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.col1</label>
                            <config type="array">
                                <type>select</type>
                                <renderType>selectSingle</renderType>
                                <itemsProcFunc>Laxap\BootstrapGrids\Controller\FlexFormController->getTwoColumnOptions</itemsProcFunc>
                            </config>
                        </TCEforms>
                    </lgCol1>
                    <lgCol2 type="array">
                        <TCEforms type="array">
                            <label>LLL:EXT:bootstrap_grids/Resources/Private/Language/locallang_db.xlf:grid.label.col2</label>
                            <config type="array">
                                <type>select</type>
                                <renderType>selectSingle</renderType>
                                <itemsProcFunc>Laxap\BootstrapGrids\Controller\FlexFormController->getTwoColumnOptions</itemsProcFunc>
                            </config>
                        </TCEforms>
                    </lgCol2>
                </el>
            </ROOT>
        </largeDevices>

但似乎,EXT:gridelements以其他方式处理FlexForm,因此无法使用TCEFORM进行操作,这不起作用:

TCEFORM.tt_content.pi_flexform.gridelements_pi1.largeDevices.lgCol1.disabled = 1

0 个答案:

没有答案