(no commit message)
[paste/746.git] / README.rst
1 Exception\r
2 =========\r
3 \r
4  (1/1) #1256475113 InvalidArgumentException\r
5 \r
6  The argument "image" was registered with type "object", but is of type "array" in view helper "TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper".\r
7 \r
8 Code::\r
9 \r
10     {v:resource.record.fal(table:'pages', field: 'media', record: page)                                                                                                                            \r
11       -> v:iterator.first()                                                                                                                                                                                      \r
12       -> v:variable.set(name: 'image')}                                                                                                                                                                          \r
13     <f:if condition="{image}">\r
14       <f:image image="{image}" />\r
15     </f:if>\r
16 \r
17 Solution\r
18 ========\r
19 \r
20 Use "asObjects=1" for v:resource.record.fal::\r
21 \r
22     {v:resource.record.fal(table:'pages', field: 'media', record: page, asObjects: 1)}\r