Project

General

Profile

Actions

Bug #106843

open

Problem with FlexFormFieldValues with settings.something fields inside Fluid

Added by Nikita Hovratov 13 days ago. Updated 13 days ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2025-06-06
Due date:
% Done:

0%

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

Description

Scenario:

A FlexForm field defines two Sheets "A" and "B".
Inside "A" there is a field called "settings.field_alpha"
Inside "B" there is a field called "settings.field_beta"

Now, inside a Fluid template I want to access one of those values:

{flexField.settings.field_alpha}

This triggers the error:

TYPO3\CMS\Core\Domain\Exception\FlexFieldPropertyException
Given id is ambigious since the field exists in multiple sheets and no sheet is defined.

The root problem is, that Fluid wants to first access "settings" (which is ambigious), and only then "field_alpha".

In PHP code this would work without problems:

$flexField->get('settings.field_alpha');

Workaround:

Use Fluid variables to "trick" Fluid and pass the sheet to distinguish the path:

<f:variable name="path" value="A/settings"/> {flexField.{path}.field_alpha}

Solution:

The ideal solution would of course be to "teach" Fluid to access the full path identifier as a whole.
However, a new syntax would be required for that only to fix this one specific use case.

Another idea would be to allow only "settings" to exist in multiple sheets. If there are duplicate identifiers, the last one "wins".
The key "settings" is standing out, as it is used for Extbase Settings and is available as a flat list in ActionController.
Allowing this exception would make it possible to access these values in normal Content Elements / Plugins as well.

Actions #1

Updated by Gerrit Code Review 13 days ago

  • Status changed from New to Under Review

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #2

Updated by Gerrit Code Review 13 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #3

Updated by Gerrit Code Review 13 days ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #4

Updated by Gerrit Code Review 13 days ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #5

Updated by Gerrit Code Review 13 days ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #6

Updated by Gerrit Code Review 13 days ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #7

Updated by Gerrit Code Review 13 days ago

Patch set 8 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #8

Updated by Gerrit Code Review 13 days ago

Patch set 9 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #9

Updated by Gerrit Code Review 13 days ago

Patch set 10 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions #10

Updated by Gerrit Code Review 13 days ago

Patch set 11 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/89405

Actions

Also available in: Atom PDF