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"/>
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29923
Updated by Helmut Hummel over 10 years ago
- Status changed from Under Review to Closed
closed as duplicate
Actions