Actions
Bug #78548
closedDynamic variables access does not work as with standalone 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.
Actions