Project

General

Profile

Actions

Bug #76637

closed

Flexform: Using settings as displayCond within another sheet

Added by M. Ecker over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2016-06-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

With displayCond in flexforms all sheets are handled separately, which is at least not intuitive.
Example given:
You have two sheets in your flexform, say 'Contents to display' (sDef) and 'Layout settings' (Layout).
In the first sheet you use a select list named <settings.typeOfContent> (and some other settings).
In the second sheet you want to have special options if <settings.typeOfContent> is 'LectureList'.

Neither

 <numIndex index="0">FIELD:settings.typeOfContent:=:LectureList</numIndex>

nor
 <numIndex index="0">FIELD:sDef.settings.typeOfContent:=:LectureList</numIndex>

will work, since the settings of both sheets are neither integrated regardless of sheet nor the settings done in another sheet are available to the ElementConditionMatcher.

So you have to put all in one sheet.
A displayCond at sheet level is not really an option:
You would have to set up a new sheet for every dependent setting in your Layout sheet since it's not recommendable to duplicate the Layout-Sheet where Layout2 would have the same settings.xyz names like Layout1. (Extbase will read all settings from the flexform with no regard to which sheet is visible to the BeUser and which not.)

Actions

Also available in: Atom PDF