我正在使用 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}"/>
如何更改此代码以解决错误并显示封面书?