Issue Feature Closed

#33390displayCond for sheets in flexforms

Anonymous 01/23/12, 16:07 updated 10/02/18, 12:40

Description

would be nice to be able to determine whether a flexform sheet will be display or not via displayCond. This currently only works for fields and is checking for field values is limited to those of the same sheet.

just like accessing the values of fields from the same sheet for a field:

<displayCond>FIELD:view:=:list</displayCond>

or fields of the tt_content record:

<displayCond>FIELD:parentRec.fieldXYZ:=:valueXYZ</displayCond>

there should be a possibility to check on specific fields of specific sheets for sheets:

<displayCond>FIELD:sDEF.view:=:list</displayCond>

the attached patch file is just a little hack to demonstrate the feature. it covers scenarios like:

<sDEF>
    ...
</sDEF
<sheet1>
    <ROOT>
        <TCEforms>
            <sheetTitle>My optional Sheet</sheetTitle>
            <displayCond>FIELD:sDEF.view:=:list</displayCond>
        </TCEforms>
        <el>
            ...

Reviews 1