[TYPO3-mvc] Dynamic path in array
Sebastian Fischer
typo3 at fischer.im
Wed Jun 16 15:33:54 CEST 2010
Hi everyone,
i want something like this:
{data.2.section.{other.type}.title}
But this doesn't work.
What's the purpose? Well i have an array other with an value defined by
key. With this i want to get a defined section of data.2 .
Looping over the hole stuff shows the expected results. Debugging in php
does also show the correct array values.
Using the stuff above in a template only shows the string.
Using it in f:alias i get this beauty:
#1237900529: The argument "map" was registered with type "array", but is
of type "string" in view helper "Tx_Fluid_ViewHelpers_AliasViewHelper".
Value of argument: "{x: data.2.section[3]}"
Anyone with an solution how to make one part of the path dynamic?
Greetings
Sebastian
More information about the TYPO3-project-typo3v4mvc
mailing list