We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26761
    • 3 Posts
    Hi,
    I’m trying for days to get a proper output from a nested migx-call. I’m hoping someone could me point to the right direction. My main problem is the imageplus integration. If a modal-window is filled and saved back to the resource, I notice that in the internal json the string of "list_grid_inner_field" is empty. Why?

    Step by step:
    in the template i have
    [[getImageList? 
        &tvname=`multi2` 
        &toSeparatePlaceholders=`multi` 
        &tpl=`@FIELD:MIGX_formname` 
        &docid=`[[*id]]` 
        &where=`{"active:=":"active"}`
    ]]


    in the content-field of a resource i call a separate migx-row with for example
    [[+multi.1]]


    the template "List_Grid" looks like this
    <article>
    [[getImageList?
        &value=`[[+list_grid_inner_field]]`
        &tpl=`list_grid__inner`
        &docid=`[[*id]]_[[+MIGX_id]]`
        &where=`{"active:=":"active"}`
    ]]
    </article>


    Template "list_grid__inner"
    <section>
    [[ImagePlus?
        &value=`[[+image5]]`
        &docid=`[[+MIGX_id]]`
        &type=`tpl`
        &tpl=`multi__picture_gallery`
    ]]
    </section>


    Template "multi__picture_gallery"
    <img src="[[+source.src:pthumb=`[[+crop.options]]&w=200`]]">




    The interesting point, if I change the "list_grid__inner" to a easy <section>[[+image5]]</section> it gives me the proper json-string. This would stored correctly in the MIGX-table. But everything I try to get the cropped image with the imageplus-Snippet, it crashes the MIGX-table. I couldn’t save and have to reload the resource. I couldn’t locate the error. And I’m struggling between: imageplus, Migx and the pthumb-cache.

    If instead Imageplus a simple image inputTVtype is used, everything is fine. Here I could use pthumb as output-modifier and so on. But my client ask me to install an image-cropper instead. So I think my problem is anywhere between Imageplus and MIGX. But where exactly?


    My MIGX configuration looks a bit more complex:

    Multiple_Formtabs
    {
      "formtabs":[
        {
          "MIGX_id":10,
          "caption":"Setting",
          "print_before_tabs":"0",
          "pos":1,
          "MIGXtype":"formtab",
          "MIGXtyperender":"<h3>formtab<\/h3>",
          "fields":[
            
          ]
        }
      ],
      "contextmenus":"",
      "actionbuttons":"",
      "columnbuttons":"edit_migx||duplicate_migx||remove_migx",
      "filters":"",
      "extended":{
        "migx_add":"Add new table",
        "disable_add_item":"",
        "add_items_directly":"",
        "formcaption":"",
        "update_win_title":"Multi-Modul",
        "win_id":"Multiple_Formtabs",
        "maxRecords":"",
        "addNewItemAt":"top",
        "media_source_id":"",
        "multiple_formtabs":"9||8",
        "multiple_formtabs_label":"Template",
        "multiple_formtabs_field":"",
        "multiple_formtabs_optionstext":"",
        "multiple_formtabs_optionsvalue":"",
        "actionbuttonsperrow":4,
        "winbuttonslist":"",
        "extrahandlers":"",
        "filtersperrow":4,
        "packageName":"",
        "classname":"",
        "task":"",
        "getlistsort":"",
        "getlistsortdir":"",
        "sortconfig":"",
        "gridpagesize":"",
        "use_custom_prefix":"0",
        "prefix":"",
        "grid":"",
        "gridload_mode":1,
        "check_resid":1,
        "check_resid_TV":"",
        "join_alias":"",
        "has_jointable":"yes",
        "getlistwhere":"",
        "joins":"",
        "hooksnippets":"",
        "cmpmaincaption":"",
        "cmptabcaption":"",
        "cmptabdescription":"",
        "cmptabcontroller":"",
        "winbuttons":"",
        "onsubmitsuccess":"",
        "submitparams":""
      },
      "columns":[
        {
          "MIGX_id":4,
          "header":"Settings",
          "dataIndex":"render_copy",
          "width":100,
          "sortable":"false",
          "show_in_grid":1,
          "customrenderer":"",
          "renderer":"this.renderChunk",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":[
            {
              "MIGX_id":1,
              "name":"multiPreviewTpl__Settings",
              "use_as_fallback":"",
              "value":"",
              "clickaction":"",
              "handler":"",
              "image":""
            }
          ],
          "editor":""
        },
        {
          "MIGX_id":3,
          "header":"Preview",
          "dataIndex":"render_preview",
          "width":800,
          "sortable":"false",
          "show_in_grid":1,
          "customrenderer":"",
          "renderer":"this.renderChunk",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":[
            {
              "MIGX_id":1,
              "name":"multiPreviewTpl__all",
              "use_as_fallback":"",
              "value":"",
              "clickaction":"",
              "handler":"",
              "image":""
            }
          ],
          "editor":""
        }
      ]
    }


    List_Grid
    {
      "formtabs":[
        {
          "MIGX_id":18,
          "MIGXtype":"formtab",
          "MIGXtyperender":"<h3>formtab<\/h3>",
          "caption":"Publish",
          "print_before_tabs":1,
          "pos":1,
          "fields":[
            {
              "MIGX_id":71,
              "field":"active",
              "caption":"",
              "description":"activate or deactivate this table",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"option",
              "validation":"",
              "configs":{
                "allowBlank":"false",
                "columns":12
              },
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"active||inactive",
              "default":"active",
              "useDefaultIfEmpty":1,
              "pos":1,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            }
          ]
        },
        {
          "MIGX_id":11,
          "caption":"Elements",
          "print_before_tabs":"0",
          "pos":2,
          "MIGXtype":"formtab",
          "MIGXtyperender":"<h3>formtab<\/h3>",
          "fields":[
            {
              "MIGX_id":70,
              "field":"list_grid_inner_field",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"list_grid_inner_TV",
              "inputTVtype":"",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":1,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            }
          ]
        },
        {
          "MIGX_id":12,
          "caption":"global Layout-Settings",
          "print_before_tabs":"0",
          "fields":[
            {
              "MIGX_id":39,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "field":"headline",
              "caption":"Headline + Class",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"text",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":"",
              "pos":1
            },
            {
              "MIGX_id":73,
              "field":"headline_class",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"don\u2019t show Headline||Headline 1||Headline 2||Headline 2 alternativ||Headline 3||Paragraph",
              "default":"don\u2019t show Headline",
              "useDefaultIfEmpty":"0",
              "pos":2,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":92,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "field":"relation",
              "caption":"Width relation",
              "description":"Image | Text (in percent)",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"option",
              "validation":"",
              "configs":{
                "allowBlank":"false",
                "columns":11
              },
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"0 | 100||10 | 90||20 | 80||30 | 70||40 | 60||50 | 50||60 | 40||70 | 30||80 | 20||90 | 10||100 | 0",
              "default":"50 | 50",
              "useDefaultIfEmpty":1,
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":"",
              "pos":3
            },
            {
              "MIGX_id":93,
              "field":"rhythm",
              "caption":"Rhythm",
              "description":"change the position of image and text",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"option",
              "validation":"",
              "configs":{
                "allowBlank":"false",
                "columns":8
              },
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"conservative||zick-zack||zack-zick||leftside-right",
              "default":"conservative",
              "useDefaultIfEmpty":1,
              "pos":4
            },
            {
              "MIGX_id":79,
              "field":"bg_color",
              "caption":"global Settings: Background",
              "description":"color, odd\/even, begin with, image overlay",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"COLOR \u2013\u2013\u2013||lightgreen||lightblue||lightgray",
              "default":"COLOR \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":5,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":80,
              "field":"bg_oddeven",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"ODD\/EVEN \u2013\u2013\u2013||odd||even||each",
              "default":"ODD\/EVEN \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":6,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":82,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "field":"bg_overlay",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"IMAGE OVERLAY \u2013\u2013\u2013||overlay||no-overlay",
              "default":"IMAGE OVERLAY \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":"",
              "pos":7
            },
            {
              "MIGX_id":83,
              "field":"border_color",
              "caption":"global Settings: Border",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"COLOR \u2013\u2013\u2013||gray||black||white||green||blue||brown||lightgreen||lightblue||lightbrown||lightgray||red",
              "default":"COLOR \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":8,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":84,
              "field":"border_width",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"WIDTH \u2013\u2013\u2013||1px||2px||3px||4px||5px||6px||7px||8px",
              "default":"WIDTH \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":9,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":85,
              "field":"border_style",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"STYLE \u2013\u2013\u2013||solid||dashed||dotted",
              "default":"STYLE \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":10,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":86,
              "field":"border_top",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"BORDER-TOP \u2013\u2013\u2013||border_top||no \u2013\u2013\u2013",
              "default":"BORDER-TOP \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":11,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":87,
              "field":"border_right",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"BORDER-RIGHT \u2013\u2013\u2013||border_right||no \u2013\u2013\u2013",
              "default":"BORDER-RIGHT \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":12,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":88,
              "field":"border_bottom",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"BORDER-BOTTOM \u2013\u2013\u2013||border_bottom||no \u2013\u2013\u2013",
              "default":"BORDER-BOTTOM \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":13,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":89,
              "field":"border_left",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"BORDER-LEFT \u2013\u2013\u2013||border_left||no \u2013\u2013\u2013",
              "default":"BORDER-LEFT \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "pos":14,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":90,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "field":"border_horizontal",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"BETWEEN-HORIZONTAL \u2013\u2013\u2013||border_horizontal",
              "default":"BETWEEN-HORIZONTAL \u2013\u2013\u2013",
              "useDefaultIfEmpty":1,
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":"",
              "pos":15
            },
            {
              "MIGX_id":91,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "field":"border_vertical",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"listbox",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"BETWEEN-VERTICAL \u2013\u2013\u2013||border_vertical",
              "default":"BETWEEN-VERTICAL \u2013\u2013\u2013",
              "useDefaultIfEmpty":"0",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":"",
              "pos":16
            }
          ],
          "pos":3
        }
      ],
      "contextmenus":"",
      "actionbuttons":"",
      "columnbuttons":"",
      "filters":"",
      "extended":{
        "migx_add":"",
        "disable_add_item":"",
        "add_items_directly":"",
        "formcaption":"",
        "update_win_title":"Image_Grid",
        "win_id":"List_Grid_TV",
        "maxRecords":"",
        "addNewItemAt":"bottom",
        "media_source_id":"",
        "multiple_formtabs":"",
        "multiple_formtabs_label":"",
        "multiple_formtabs_field":"",
        "multiple_formtabs_optionstext":"",
        "multiple_formtabs_optionsvalue":"",
        "actionbuttonsperrow":4,
        "winbuttonslist":"done",
        "extrahandlers":"",
        "filtersperrow":4,
        "packageName":"",
        "classname":"",
        "task":"",
        "getlistsort":"",
        "getlistsortdir":"",
        "sortconfig":"",
        "gridpagesize":"",
        "use_custom_prefix":"0",
        "prefix":"",
        "grid":"",
        "gridload_mode":1,
        "check_resid":1,
        "check_resid_TV":"",
        "join_alias":"",
        "has_jointable":"yes",
        "getlistwhere":"",
        "joins":"",
        "hooksnippets":"",
        "cmpmaincaption":"",
        "cmptabcaption":"",
        "cmptabdescription":"",
        "cmptabcontroller":"",
        "winbuttons":"",
        "onsubmitsuccess":"",
        "submitparams":""
      },
      "columns":""
    }


    list_grid_inner
    {
      "formtabs":[
        {
          "MIGX_id":19,
          "caption":"Elements",
          "print_before_tabs":"0",
          "fields":[
            {
              "MIGX_id":72,
              "field":"active",
              "caption":"Activate this item ",
              "description":"or deactivate it",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"option",
              "validation":"",
              "configs":{
                "allowBlank":"false",
                "columns":12
              },
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"active||inactive",
              "default":"active",
              "useDefaultIfEmpty":1,
              "pos":1,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":75,
              "field":"text",
              "caption":"Textarea",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"richtext",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":2,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":76,
              "field":"image",
              "caption":"Image",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"image",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"none",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":3,
              "MIGXtype":"field",
              "MIGXtyperender":"<h3>...field<\/h3>",
              "MIGXlayoutid":0,
              "MIGXcolumnid":0,
              "MIGXcolumnwidth":0,
              "MIGXcolumnminwidth":"",
              "MIGXcolumnstyle":"",
              "MIGXcolumncaption":"",
              "MIGXlayoutstyle":"",
              "MIGXlayoutcaption":""
            },
            {
              "MIGX_id":95,
              "field":"image5",
              "caption":"image5",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"imageplus",
              "validation":"",
              "configs":{
                "targetWidth":"",
                "targetHeight":"",
                "targetRatio":"",
                "thumbnailWidth":"",
                "allowAltTag":true,
                "allowCaption":true,
                "allowCredits":"false"
              },
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":[
                {
                  "MIGX_id":1,
                  "context":"web",
                  "sourceid":2
                },
                {
                  "MIGX_id":2,
                  "context":"mgr",
                  "sourceid":2
                }
              ],
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":4
            }
          ],
          "pos":1
        }
      ],
      "contextmenus":"",
      "actionbuttons":"",
      "columnbuttons":"",
      "filters":"",
      "extended":{
        "migx_add":"",
        "disable_add_item":"",
        "add_items_directly":"",
        "formcaption":"",
        "update_win_title":"Elements of the List Grid",
        "win_id":"list_grid_inner_TV",
        "maxRecords":"",
        "addNewItemAt":"bottom",
        "media_source_id":"",
        "multiple_formtabs":"",
        "multiple_formtabs_label":"",
        "multiple_formtabs_field":"",
        "multiple_formtabs_optionstext":"",
        "multiple_formtabs_optionsvalue":"",
        "actionbuttonsperrow":4,
        "winbuttonslist":"",
        "extrahandlers":"",
        "filtersperrow":4,
        "packageName":"",
        "classname":"",
        "task":"",
        "getlistsort":"",
        "getlistsortdir":"",
        "sortconfig":"",
        "gridpagesize":"",
        "use_custom_prefix":"0",
        "prefix":"",
        "grid":"",
        "gridload_mode":1,
        "check_resid":1,
        "check_resid_TV":"",
        "join_alias":"",
        "has_jointable":"yes",
        "getlistwhere":"",
        "joins":"",
        "hooksnippets":"",
        "cmpmaincaption":"",
        "cmptabcaption":"",
        "cmptabdescription":"",
        "cmptabcontroller":"",
        "winbuttons":"",
        "onsubmitsuccess":"",
        "submitparams":""
      },
      "columns":[
        {
          "MIGX_id":1,
          "header":"Image5",
          "dataIndex":"image5",
          "width":"",
          "sortable":"false",
          "show_in_grid":1,
          "customrenderer":"",
          "renderer":"ImagePlus.MIGX_Renderer",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"",
          "editor":""
        }
      ]
    }



    Maybe I have to underline, that the backend-preview is rendered into a column of "Multiple_Formtabs". Therefore I use the same templates as for the frontend. Via this customrenderer-Tpl "multiPreviewTpl__all"
    <div class="preview">[[$[[+MIGX_formname]]? &docid=`[[*id]]_[[+MIGX_id]]`]]</div>



    Bruno, I would love it if you could follow me.
    Ciao Simon. [ed. note: Serifenlos last edited this post 7 years, 3 months ago.]
      • 26761
      • 3 Posts
      I did a very simple MIGX-setup and I failed. So I think to know that the renderChunk is my problem.

      I put a imageplus- and a text-inputType in the formtab. In the Columntab just a preview-field with a renderChunk-renderer.

      If I call the ImagePlus-Plugin with a renderChunk-Tpl to get a cropped image in my MIGX-table, the hole story fails. But if the ImagePlus-Plugin is canceled, the [[+text]] will gets out.

      Could you reproduce this?
      Cheers Simon.