We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8274 ☆ A M B ☆
    • 222 Posts
    Most likely a question for Bruno, but posting it for any ideas on this one.

    MODX 2.3.3
    MIGX 2.9.0

    I have a multitab MIGX CMP that pulls in grids from other MIGX Configs.

    The issue is the interface. In my Specifications tab, the "Add Item" button is outside of the Action Buttons box (the box is still there next to it) and other Action buttons do not show up, but on my Images tab, the Add Item button is where it should be and the other buttons show up.

    productspecifications configuration JSON here:
    {
      "formtabs":[
        {
          "MIGX_id":8,
          "caption":"Add Specification",
          "print_before_tabs":"0",
          "fields":[
            {
              "MIGX_id":19,
              "field":"name",
              "caption":"Name",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"text",
              "configs":"",
              "sourceFrom":"config",
              "sources":"[]",
              "inputOptionValues":"",
              "default":"",
              "pos":1
            },
            {
              "MIGX_id":20,
              "field":"standard",
              "caption":"Standard",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"text",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":2
            },
            {
              "MIGX_id":21,
              "field":"metric",
              "caption":"Metric",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"text",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":"",
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":3
            }
          ],
          "pos":1
        }
      ],
      "contextmenus":"update||duplicate||remove",
      "actionbuttons":"addItem||bulk",
      "columnbuttons":"",
      "filters":"",
      "extended":{
        "migx_add":"Add Specification",
        "disable_add_item":"",
        "add_items_directly":"",
        "formcaption":"",
        "update_win_title":"",
        "win_id":"productspecs",
        "maxRecords":"",
        "addNewItemAt":"bottom",
        "multiple_formtabs":"",
        "multiple_formtabs_label":"",
        "multiple_formtabs_field":"",
        "multiple_formtabs_optionstext":"",
        "multiple_formtabs_optionsvalue":"",
        "actionbuttonsperrow":2,
        "winbuttonslist":"",
        "extrahandlers":"",
        "filtersperrow":1,
        "packageName":"productcatalog",
        "classname":"Catalog",
        "task":"",
        "getlistsort":"",
        "getlistsortdir":"",
        "sortconfig":"",
        "gridpagesize":"",
        "use_custom_prefix":"0",
        "prefix":"",
        "grid":"",
        "gridload_mode":2,
        "check_resid":1,
        "check_resid_TV":"",
        "join_alias":"",
        "has_jointable":"yes",
        "getlistwhere":"",
        "joins":"",
        "cmpmaincaption":"",
        "cmptabcaption":"",
        "cmptabdescription":"",
        "cmptabcontroller":"",
        "winbuttons":"",
        "onsubmitsuccess":"",
        "submitparams":""
      },
      "columns":[
        {
          "MIGX_id":1,
          "header":"Name",
          "dataIndex":"name",
          "width":"",
          "sortable":true,
          "show_in_grid":1,
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"",
          "editor":"this.textEditor"
        },
        {
          "MIGX_id":2,
          "header":"Standard",
          "dataIndex":"standard",
          "width":"",
          "sortable":true,
          "show_in_grid":1,
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"",
          "editor":"this.textEditor"
        },
        {
          "MIGX_id":3,
          "header":"Metric",
          "dataIndex":"metric",
          "width":"",
          "sortable":true,
          "show_in_grid":1,
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"",
          "editor":"this.textEditor"
        },
        {
          "MIGX_id":4,
          "header":"id",
          "dataIndex":"id",
          "width":"",
          "sortable":"false",
          "show_in_grid":"0",
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"",
          "editor":""
        }
      ]
    }

    ProductImages config here:
    {
      "formtabs":[
        {
          "MIGX_id":9,
          "caption":"Images",
          "print_before_tabs":"0",
          "fields":[
            {
              "MIGX_id":22,
              "field":"imgpath",
              "caption":"Image",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"image",
              "validation":"",
              "configs":"",
              "restrictive_condition":"",
              "display":"",
              "sourceFrom":"config",
              "sources":[
                {
                  "MIGX_id":1,
                  "context":"web",
                  "sourceid":2
                }
              ],
              "inputOptionValues":"",
              "default":"",
              "useDefaultIfEmpty":"0",
              "pos":1
            },
            {
              "MIGX_id":23,
              "field":"prodid",
              "caption":"",
              "description":"",
              "description_is_code":"0",
              "inputTV":"",
              "inputTVtype":"text",
              "configs":"",
              "sourceFrom":"config",
              "sources":"[]",
              "inputOptionValues":"",
              "default":"",
              "pos":2
            }
          ],
          "pos":1
        }
      ],
      "contextmenus":"update||recall_remove_delete||remove||remove_migx",
      "actionbuttons":"addItem||bulk",
      "columnbuttons":"update||deactivate||recall_remove_delete||remove||remove_migx",
      "filters":"",
      "extended":{
        "migx_add":"Add Image",
        "disable_add_item":"",
        "add_items_directly":"",
        "formcaption":"",
        "update_win_title":"",
        "win_id":"ProductImages",
        "maxRecords":"",
        "addNewItemAt":"top",
        "multiple_formtabs":"",
        "multiple_formtabs_label":"",
        "multiple_formtabs_field":"",
        "multiple_formtabs_optionstext":"",
        "multiple_formtabs_optionsvalue":"",
        "actionbuttonsperrow":2,
        "winbuttonslist":"",
        "extrahandlers":"",
        "filtersperrow":1,
        "packageName":"productcatalog",
        "classname":"ProdImg",
        "task":"",
        "getlistsort":"",
        "getlistsortdir":"",
        "sortconfig":"",
        "gridpagesize":"",
        "use_custom_prefix":"0",
        "prefix":"",
        "grid":"",
        "gridload_mode":2,
        "check_resid":1,
        "check_resid_TV":"",
        "join_alias":"Product",
        "has_jointable":"yes",
        "getlistwhere":"",
        "joins":"",
        "cmpmaincaption":"",
        "cmptabcaption":"",
        "cmptabdescription":"",
        "cmptabcontroller":"",
        "winbuttons":"",
        "onsubmitsuccess":"",
        "submitparams":""
      },
      "columns":[
        {
          "MIGX_id":1,
          "header":"id",
          "dataIndex":"id",
          "width":"",
          "sortable":"false",
          "show_in_grid":"0",
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"[]"
        },
        {
          "MIGX_id":2,
          "header":"Image",
          "dataIndex":"imgpath",
          "width":"",
          "sortable":"false",
          "show_in_grid":1,
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"",
          "editor":""
        },
        {
          "MIGX_id":3,
          "header":"prodid",
          "dataIndex":"prodid",
          "width":"",
          "sortable":"false",
          "show_in_grid":1,
          "renderer":"",
          "clickaction":"",
          "selectorconfig":"",
          "renderchunktpl":"",
          "renderoptions":"[]"
        }
      ]
    }


    Screen shots attached.

    What needs to be updated in the productspecifications config to get it looking like the buttons in ProductImages?
      • 4172
      • 5,888 Posts
      does it work when you call that CMP-tab alone?

      only &configs=productspecifications

      without the other ones?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 8274 ☆ A M B ☆
        • 222 Posts
        Yes (although the grid is empty), but the buttons are there and in the right place
          • 8274 ☆ A M B ☆
          • 222 Posts
          So Bruno, any further thoughts on why the nested MIGX config doesn't render its action buttons the same as if the config is in the browser stand-alone?