Hi All,
I’ve set an image to image+ within MIGX which does show the crop function for the image but I need to set the aspect ratio within the MIGX formtabs field configuration and I have no idea how to do this, I currently have:
[{
"caption": "Info",
"fields": [{
"field": "title",
"caption": "Title"
},
{
"field": "description",
"caption": "Description",
"inputTVtype": "richtext"
}
]
},
{
"caption": "Image",
"fields": [{
"field": "image",
"caption": "Image",
"inputTVtype": "imageplus"
}]
}
]
According to the docs I have to do the following but I keep breaking it:
If you want to use Image+ in MIGX you could define all Image+ TV properties with a JSON string in the Configs textarea in the MIGX formtabs field configuration. The following properties are possible:
{
"targetWidth":"",
"targetHeight":"",
"targetRatio":"",
"thumbnailWidth":"",
"allowAltTag":"",
"allowCaption":"",
"allowCredits":""
}
I’ve tried the following but I I say it breaks:
[{
"caption": "Info",
"fields": [{
"field": "title",
"caption": "Title"
},
{
"field": "description",
"caption": "Description",
"inputTVtype": "richtext"
}
]
},
{
"caption": "Image",
"fields": [{
"field": "image",
"caption": "Image",
"inputTVtype": "imageplus"
{
"targetRatio":"1.0"
}
}]
}
]
I’ve also tried adding the below to the Configurations box but it doesn’t seem to do anything:
{ "targetRatio":"1.85" }
And adding as a new line as below but it doesn’t seem to do anything:
[{
"caption": "Info",
"fields": [{
"field": "title",
"caption": "Title"
},
{
"field": "description",
"caption": "Description",
"inputTVtype": "richtext"
}
]
},
{
"caption": "Image",
"fields": [{
"field": "image",
"caption": "Image",
"inputTVtype": "imageplus",
"targetRatio":"1.85"
}]
}
]
Could someone point out where I’m going wrong as I’m not the best with MIGX
Cheers