Project

General

Profile

Actions

Bug #67879

closed

Using displaycond on switchable controller actions in Flexform with TYPO3 7.3 not possible

Added by Alex Kellner over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
FormEngine aka TCEforms
Target version:
Start date:
2015-07-01
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Stabilization Sprint

Description

Hi,

in the past it was possible to use displayCond in Flexform together with switchableControllerActions, but this seems to be broken in TYPO3 7.3

Example FlexForm XML:

<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <sheets>
        <sheet1>
            <ROOT>
                <TCEforms>
                    <sheetTitle>sheet 1</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <switchableControllerActions>
                        <TCEforms>
                            <label>select view</label>
                            <onChange>reload</onChange>
                            <config>
                                <type>select</type>
                                <items type="array">
                                    <numIndex index="0" type="array">
                                        <numIndex index="0">foo</numIndex>
                                        <numIndex index="1"></numIndex>
                                    </numIndex>
                                    <numIndex index="1" type="array">
                                        <numIndex index="0">bar</numIndex>
                                        <numIndex index="1">ControllerName->actionname;</numIndex>
                                    </numIndex>
                                </items>
                                <maxitems>1</maxitems>
                                <size>1</size>
                            </config>
                        </TCEforms>
                    </switchableControllerActions>
                </el>
            </ROOT>
        </sheet1>
        <sheet2>
            <ROOT>
                <TCEforms>
                    <sheetTitle>sheet 2</sheetTitle>
                    <displayCond><![CDATA[FIELD:sheet1.switchableControllerActions:=:ControllerName->actionname;]]></displayCond>
                </TCEforms>
                <type>array</type>
                <el>
                    <settings.foo>
                        <TCEforms>
                            <label>foo</label>
                            <config>
                                <type>input</type>
                            </config>
                        </TCEforms>
                    </settings.foo>
                </el>
            </ROOT>
        </sheet2>
    </sheets>
</T3DataStructure>

Sheet 2 should only be shown if Controllername->action; is set. But this seem not to work any more.
If I'm wrong, can you please tell me how to get this issue solved?

Alex


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #68493: DisplayCond for sheets in flexforms should allow extbase parameters "settings."ClosedBenjamin Serfhos2015-07-23

Actions
Related to TYPO3 Core - Bug #42333: Flexform displayConditionRejected2012-10-24

Actions
Actions

Also available in: Atom PDF