[TYPO3-mvc] How to access first element of Tx_Extbase_Persistence_ObjectStorage in fluid?
Andreas Kiessling
andreas.kiessling at web.de
Tue Mar 16 10:10:29 CET 2010
Hi,
i am working on an extension, where dam records can be referenced.
So far, im getting an object of type
Tx_Extbase_Persistence_ObjectStorage back, over which i can iterate with
the for-viewhelper and display the records. But since i only assign one
record to this field (limited in TCA), iterating isn't really needed.
Can i somehow access only the first item from my fluid view? The array
syntax isn't working here. In the for viewhelper, the object is
internally converted to an array, so i guess i will have to write my own
viewhelper to accomplish this task. Am i missing something here?
Regards,
Andreas
PS: I'm using current SVN versions from extbase and fluid
More information about the TYPO3-project-typo3v4mvc
mailing list