Insert media image in detail view

531 views Asked by At

I'm using TYPO3 9.5.3 and the sf_books extension to manage books.

I inserted book on BE with image cover for the book item.

I get this error on the singleView (detail) :

The argument "image" was registered with type "object", but is of type "string" in view helper "TYPO3\CMS\Fluid\ViewHelpers\ImageViewHelper".

When I check the template file I find this code supposed displays an image :

<f:image image="{book.cover}" maxWidth="200" alt="{book.title}"/>

How can I change this code the solve the error and display the cover book ?

1

There are 1 answers

2
Sebastian Fischer On

if you have a look here https://github.com/evoWeb/sf_books/blob/develop/Resources/Private/Templates/Book/Show.html you can see, that the problem should be fixed. The {book.cover} gets iterated and used as {cover} in the

If you experience futher errors, feel free to hand in issues in the tracker https://github.com/evoWeb/sf_books/issues and they will be covered.