十月CMS媒体查找器 [英] October CMS media finder
本文介绍了十月CMS媒体查找器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我最近创建了一个插件(使用"builder插件"),其中有一个用于附加图像的字段(使用"media finder widget").一切正常-我可以上传图像或从媒体库中选择一个.成功保存后,当我返回到最近保存的记录时,该图像不显示...该如何解决?
I have recently created a plugin (using the 'builder plugin') where I have a field for attaching images (using 'media finder widget'). Everything is working fine - I can upload an image or choose one from the media library. After successful saving, when I go back to the recently saved record, the image isn't shown... How can I fix this?
谢谢!
推荐答案
媒体查找器小部件"不适用于关系类型文件附件",如下所示:
'media finder widget' not working with relation type 'file attachment', like this:
public $attachOne = [
'avatar' => 'System\Models\File'
];
尝试使用其他类型(例如:json)
try to use another type (for example: json)
这篇关于十月CMS媒体查找器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文