0

我正在使用 TYPO3 9.5.3 和 sf_books 扩展来管理书籍。

我在 BE 上插入了带有图片封面的书籍。

我在 singleView (detail) 上收到此错误:

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

当我检查模板文件时,我发现这段代码应该显示一个图像:

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

如何更改此代码以解决错误并显示封面书?

4

1 回答 1

1

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.

于 2019-08-28T19:45:07.350 回答