Bug #78548
closedDynamic variables access does not work as with standalone version
0%
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.
Updated by Andreas Allacher about 8 years ago
See also ticket for TYPO3/Fluid: https://github.com/TYPO3/Fluid/issues/213
Updated by Nicole Cordes about 8 years ago
- Status changed from New to In Progress
- Assignee set to Nicole Cordes
Updated by Gerrit Code Review about 8 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
Updated by Gerrit Code Review about 8 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
Updated by Benni Mack almost 8 years ago
- Target version changed from 8.6 to 8 LTS
Updated by Nicole Cordes almost 8 years ago
- Status changed from Under Review to Resolved
Fixed with the patch of #79997
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed