Task #87506
closedPrevious Feature: #79402 - New Fluid ViewHelper f:variable added -> Exception
0%
Description
Dear TYPO3-Team,
thanks for introducing an easy variable set command in TYPO3 9. Unfortunately the inline-command leads to an exception:
{myoriginalvariable -> f:variable.set(name: 'mynewvariable')}
The ViewHelper "<f:variable.set>" could not be resolved.
To be shure I also tested by using the example code on https://docs.typo3.org/typo3cms/extensions/core/Changelog/8.6/Feature-79402-VariableViewHelperForFluid.html
Additional question on usage: Is it possible to change values in a TYPO3-arrays e.g. FSC Image.html:
`{gallery.position.horizontal -> f:variable.set(name: 'somethingelse')}`
This did not work:
`<f:variable name="gallery.position.horizontal" value="test" />`
Thanks for you work.
This issue was automatically created from https://github.com/TYPO3/TYPO3.CMS/pull/159
Updated by Georg Ringer over 5 years ago
It seems the usage is wrong.
1st: the VH is called f:variable
and not f:variable.set
2nd: the name shouldn't contain any dots