<![CDATA[ Trying to get Migx to work with Image+ - My Forums]]> https://forums.modx.com/thread/?thread=104876 <![CDATA[Trying to get Migx to work with Image+]]> https://forums.modx.com/thread/104876/trying-to-get-migx-to-work-with-image#dis-post-563936 (The JSON in MIGX)
[
{"caption":"Info", "fields": [
    {"field":"title","caption":"Title"}, 
    {"field":"image",
"caption":"Image",
"inputTVtype":"imageplus",
"targetWidth":"",
"targetHeight":"",
"targetRatio":"",
"thumbnailWidth":"",
"allowAltTag":"", 
"sourceFrom":"migx"}
]}
]


This is the only output I'm getting on the front-end
{ "sourceImg": { "src": "assets/gallery/11/32.jpg", "width": 1024, "height": 680, "source": 1 }, "crop": { "x": 147, "y": 170, "width": 468, "height": 282 }, "targetWidth": 0, "targetHeight": 0 } 


This is my Chunk

   
              [[getImageList? 
    &tvname=`imageplus`
    &limit=`6`
    &tpl=`@CODE:
    [[ImagePlus? 
&value=`[[+image]]`
]]
<div class="cbp-item" data-animate="fadeIn" data-animate-delay="1.7">
              <a href="[[+image]]" class="cbp-caption" data-title="[[+title]]">
                <div class="cbp-caption-defaultWrap">
                  <img src="data:image/gif;base64,R0lGODlhAQABAPAAAP///////yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" data-cbp-src="[[+image]]" alt="" width="150" height="75"/>
            
                </div>
                <div class="cbp-caption-activeWrap">
                  <div class="cbp-l-caption-alignCenter">
                    <div class="cbp-l-caption-body">
                      <div class="cbp-l-caption-title"></div>
                      <div class="cbp-l-caption-desc"></div>
                    </div>
                  </div>
                </div>
              </a> </div>
            `]]
           
           
            </div></div>
            

Any help would be greatly appreciated]]>
gavin- Feb 04, 2019, 10:17 AM https://forums.modx.com/thread/104876/trying-to-get-migx-to-work-with-image#dis-post-563936
<![CDATA[Re: Trying to get Migx to work with Image+ (Best Answer)]]> https://forums.modx.com/thread/104876/trying-to-get-migx-to-work-with-image#dis-post-563943 You have to set up a new TV for Image+ and set it up a you would normally (input Options > Image+ - Output Options Image+ and Generate Thumbs)
So the call to your Migx TV is
[
{"caption":"Info", "fields": [
    {"field":"title","caption":"Title"}, 
    {"field":"image",
"caption":"Image",
"inputTV":"Your_Image+_TV",
"sourceFrom":"migx"}
]}
]


and the Chunk would be

  [[getImageList? 
    &tvname=`Your_Migx_tv`
    &limit=`6`
    &tpl=`@CODE:
    [[ImagePlus?
&tvname=`Your_Image+_TV`

]]
<div class="cbp-item" data-animate="fadeIn" data-animate-delay="1.7">
              <a href="[[+image]]" class="cbp-caption" data-title="[[+title]]">
                <div class="cbp-caption-defaultWrap">
                  <img src="data:image/gif;base64,R0lGODlhAQABAPAAAP///////yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" data-cbp-src="[[+image]]" alt="" width="150" height="75"/>
            
                </div>
                <div class="cbp-caption-activeWrap">
                  <div class="cbp-l-caption-alignCenter">
                    <div class="cbp-l-caption-body">
                      <div class="cbp-l-caption-title"></div>
                      <div class="cbp-l-caption-desc"></div>
                    </div>
                  </div>
                </div>
              </a> </div>
            `]]
           
           
            </div></div>
            

]]>
gavin- Feb 04, 2019, 12:52 PM https://forums.modx.com/thread/104876/trying-to-get-migx-to-work-with-image#dis-post-563943