Project

General

Profile

Actions

Bug #78548

closed

Dynamic variables access does not work as with standalone version

Added by Andreas Allacher over 7 years ago. Updated over 6 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 #1

Updated by Andreas Allacher over 7 years ago

See also ticket for TYPO3/Fluid: https://github.com/TYPO3/Fluid/issues/213

Actions #2

Updated by Nicole Cordes over 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Nicole Cordes
Actions #3

Updated by Gerrit Code Review over 7 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50918

Actions #4

Updated by Gerrit Code Review over 7 years ago

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

Actions #5

Updated by Benni Mack over 7 years ago

  • Target version changed from 8.5 to 8.6
Actions #6

Updated by Benni Mack about 7 years ago

  • Target version changed from 8.6 to 8 LTS
Actions #7

Updated by Nicole Cordes about 7 years ago

  • Status changed from Under Review to Resolved

Fixed with the patch of #79997

Actions #8

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF