so ok,
if you getYour result by findAll you get it then as object and it is also
treated as these in the helpviewer...
so what if you do the following… in list view
<f:for each=„{multiple}" as=„single">
<f:for each=„{single.images}" as=„image">
<p>{image.originalResource.originalFile.title}</p>
</f:for>
</f:for>
or as image
<f:image src=„{single.image.originalResource.originalFile.uid}" alt="" />
also look here
https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Image.html
<https://docs.typo3.org/typo3cms/ExtbaseGuide/Fluid/ViewHelper/Image.html>
What does the f:debug say wuth that. or the output?
> Am 08.08.2018 um 10:00 schrieb Christian Tauscher
> <[email protected]>:
>
> Am 08.08.2018 um 06:42 schrieb Christian Platt:
>
> did not read too carefully: dont know if this is important:
>
>> in the listView /multipleView: do you use an array as a result of database
>> or an array given from database?
>
> // get one record, image render OK
> $this->view->assign('singleObject',
> $this->objectRepository->findBySpecialCase());
>
> // get all record, fails image rendering :-(
> $moreObjects = $this->objetcRepository->findAll();
> $this->view->assign('moreObjects', $moreObjects);
>
> The model ist the same, the repository does only a more specific select,
> so only ONE record is returned. All methods pass back the same object-type
> /**
> * ...params...
> * @return Tx_Extbase_Persistence_QueryResultInterface
> */
> php/fluid debug gives me no hint why single passes on image-object and
> list does not....
>
>
>
> Christian.
> _______________________________________________
> TYPO3-english mailing list
> [email protected]
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english