Actions
Bug #58612
closedMake object access work with ObjectStorage
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-05-07
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
ObjectAccess->getPropertyPath() does not work with
ObjectStorage and numerical indexes, but it should be
because without it form fluid fields cannot be
properly handled as the value is always null.
Fixing fetching objects from ObjectStorage by index
will also enable shorter access of single objects in Fluid.
Imagine you want to render the first image in your
template. Previously you had to write this:
<f:for each="{object.images}" as="image" iteration="iterator"> <f:if condition="{iterator.isFirst}"> <f:image image="{image}" alt="" width="50"/> </f:if> </f:for>
Now you can just write:
<f:image image="{object.images.0}" alt="" width="50"/>
Actions