Project

General

Profile

Actions

Bug #78548

closed

Dynamic variables access does not work as with standalone version

Added by Andreas Allacher about 8 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Fluid
Target version:
Start date:
2016-11-02
Due date:
% Done:

0%

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

Description

TYPO3 fluid now has the support to access dynamic variables like:

./bin/fluid

<f:alias map="{foo: 'Hello World', bar: 'o'}">
        #{f{bar}o}#
    </f:alias>
^D

#Hello World#

More enteresting probably to use it for array / object access.

However, this doesn't work with TYPO3 CMS (latest master) because it overwrites the variable provider:
$this->setVariableProvider($objectManager->get(CmsVariableProvider::class));

This should also work TYPO3 CMS.

ObjectAccess is probably required because of ObjectStorage but I guess the main required part here is:
\TYPO3Fluid\Fluid\Core\Variables\VariableExtractor::resolveSubVariableReferences.

Maybe extending the VariableExtractor and modifying getByPath accordingly would be the way to solve this.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #79997: Fix dynamic variable name parts in FluidClosed2017-02-24

Actions
Actions

Also available in: Atom PDF