Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
MODX:使用Migx和ImagePlus显示图像_Image_Modx Revolution - Fatal编程技术网

MODX:使用Migx和ImagePlus显示图像

MODX:使用Migx和ImagePlus显示图像,image,modx-revolution,Image,Modx Revolution,我正在用Modx做一个项目。我使用Migx创建了一个图像滑块。客户端需要一个图像裁剪工具,所以我安装了image+。在migx变量的表单选项卡:部分,我给出了 [ {"caption":"Image", "fields":[ {"field":"image","caption":"Image","inputTVtype":"imageplus"} ]} ] 对于网格列:我已经给出了 [ {"header": "Image", "width": "50", "sortable": "f

我正在用Modx做一个项目。我使用Migx创建了一个图像滑块。客户端需要一个图像裁剪工具,所以我安装了image+。在migx变量的
表单选项卡:
部分,我给出了

[
{"caption":"Image", "fields":[
    {"field":"image","caption":"Image","inputTVtype":"imageplus"}
]}
] 
对于
网格列:
我已经给出了

[
{"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImagelus"}
]
在网格列中,选定的图像不显示(其余图像正在工作)。我猜
“renderer”:“this.renderImagelus”
是错误的,但我不知道它的值应该是什么。
有人能想出解决办法吗。

来自MODX存储库的当前Image+版本可以与MIGX一起使用

表单选项卡
部分
输入类型“:“imageplus”
中使用此选项,在
网格列
部分
渲染器中使用此选项:“imageplus.MIGX_渲染器

如果您想为图像+电视使用自己的媒体源,您必须在
表单选项卡
部分的
inputvtype
行之后添加类似的内容

"sourceFrom": "migx",
"sources": [{
    "context": "web",
    "sourceid": "2"
}]