[TYPO3-mvc] fetch element from array based on object.property

Peter Niederlag typo3-list at niekom.de
Wed Mar 31 08:54:58 CEST 2010


Hello,

I assign an array to the view:

$list = array (
  'first' => 'Hello',
  'second' => 'World'
)

Now I'd like to fetch a specific element from this array in my FLUID
template:

{list.second} -> WORKS
{list.{object.property}} -> doesn't work  :-<

However IMO it is a quite common task to fetch a specific element based
on some other value ("object accessor").

Any hints/suggestions?

Thx and Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list