[TYPO3-mvc] How to access first element of Tx_Extbase_Persistence_ObjectStorage in fluid?

Franz Koch typo3.RemoveForMessage at elements-net.de
Tue Mar 16 11:12:10 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.

I'm using a patched version of extbase with native support for TCA-group 
fields, and there I directly get the DAM object back instead of the 
objectStorage if I limit the field to 1 in TCA.

I've created a patch for this some time ago, you can find it here:
http://forge.typo3.org/issues/show/6249

Unfortunately there where some changes in SVN around the lines I 
modified, so the patch might not apply anymore. I'll provide a new patch 
some time soon.
-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list