We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43442
    • 5 Posts
    I really enjoy using MIGX, it is so flexible!

    However, today I came across a problem with the Multiple Formtabs option. When I switch between 2 different forms, the richtext editor (both tinyMCE and ckeditor) doesn't get destroyed (I think). It re-appears on the field with the same position. (for example the 2nd field). This happens every time. When there is an image upload field, the tinyMCE field will append itself underneath.. The reason I'm using the multiple formtabs option is to create a page with different types of content blocks.

    I tried using the inputTV option and/or inputType, problem occurs in both configurations.

    Using: MODX 2.2.9 and MIGX 2.5.6. My MIGX configuration is built in the configurator.

    Any idea what is causing this problem? [ed. note: jellefaber last edited this post 10 years, 7 months ago.]
      • 4172
      • 5,888 Posts
      what are your form-configurations (formtabs)?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 43442
        • 5 Posts
        I made 3 major configurations. 2 of them are the different forms (text-block and tabs-block). And one is a global configuration which lists the multiple formtabs:


        • layout_content_blocks (global config)
        • Tekstblok (text-block)
        • Tabbladen module (tab-block)
        • imagelistMIGX (included in Tekstblok)
        • tablistMIGX (included in Tabbladen module)

        layout_content_blocks (ID: 1)
        {
          "formtabs":"[]",
          "contextmenus":"",
          "actionbuttons":"",
          "columnbuttons":"",
          "filters":"[]",
          "extended":{
            "migx_add":"Voeg blok toe",
            "formcaption":"Voeg blok toe",
            "update_win_title":"Voeg blok toe",
            "win_id":"",
            "maxRecords":"",
            "multiple_formtabs":"2||6",
            "extrahandlers":"",
            "packageName":"",
            "classname":"",
            "task":"",
            "getlistsort":"",
            "getlistsortdir":"",
            "use_custom_prefix":"0",
            "prefix":"",
            "grid":"",
            "gridload_mode":1,
            "check_resid":1,
            "check_resid_TV":"",
            "join_alias":"",
            "has_jointable":"yes",
            "getlistwhere":"",
            "joins":"",
            "cmpmaincaption":"",
            "cmptabcaption":"",
            "cmptabdescription":"",
            "cmptabcontroller":"",
            "winbuttons":"",
            "onsubmitsuccess":"",
            "submitparams":""
          },
          "columns":[
            {
              "MIGX_id":4,
              "header":"Tekstitem titel",
              "dataIndex":"text_title",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            },
            {
              "MIGX_id":2,
              "header":"Type veld",
              "dataIndex":"MIGX_formname",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            },
            {
              "MIGX_id":5,
              "header":"Alternatieve layout",
              "dataIndex":"text_altlayout",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"this.renderCrossTick",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            }
          ]
        }


        Tekstblok (text-block) (ID: 2)
        {
          "formtabs":[
            {
              "MIGX_id":1,
              "caption":"Instellingen",
              "print_before_tabs":"0",
              "fields":[
                {
                  "MIGX_id":1,
                  "field":"text_title",
                  "caption":"Titel",
                  "description":"Titel van het tekstblok",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"",
                  "configs":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                },
                {
                  "MIGX_id":2,
                  "field":"text_content",
                  "caption":"Tekst",
                  "description":"Tekst in tekstblok",
                  "description_is_code":"0",
                  "inputTV":"richtextMIGX",
                  "inputTVtype":"",
                  "configs":"",
                  "sourceFrom":"tv",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                },
                {
                  "MIGX_id":3,
                  "field":"text_altlayout",
                  "caption":"Alternatieve layout",
                  "description":"(Tekst rechts \/ afbeelding links)",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"listbox",
                  "configs":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"Nee==0||Ja==1",
                  "default":"0"
                }
              ]
            },
            {
              "MIGX_id":2,
              "caption":"Afbeeldingen",
              "print_before_tabs":"0",
              "fields":[
                {
                  "MIGX_id":1,
                  "field":"images",
                  "caption":"Afbeeldingen",
                  "description":"Afbeeldingen per tekstblok",
                  "description_is_code":"0",
                  "inputTV":"imageListMIGX",
                  "inputTVtype":"migx",
                  "configs":"imageListMIGX",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                }
              ]
            }
          ],
          "contextmenus":"",
          "actionbuttons":"",
          "columnbuttons":"",
          "filters":"[]",
          "extended":{
            "migx_add":"Voeg een tekstblok toe",
            "formcaption":"Tekstblok toevoegen\/wijzigen",
            "update_win_title":"Tekstblok toevoegen\/wijzigen",
            "win_id":"text",
            "maxRecords":"",
            "multiple_formtabs":"",
            "extrahandlers":"",
            "packageName":"",
            "classname":"",
            "task":"",
            "getlistsort":"",
            "getlistsortdir":"",
            "use_custom_prefix":"0",
            "prefix":"",
            "grid":"",
            "gridload_mode":1,
            "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":"Titel",
              "dataIndex":"text_title",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            },
            {
              "MIGX_id":2,
              "header":"Tekst",
              "dataIndex":"text_content",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            },
            {
              "MIGX_id":3,
              "header":"Alternatieve layout",
              "dataIndex":"text_altlayout",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"this.renderCrossTick",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            }
          ]
        }


        Tabbladen module (tabs-block) (ID: 6):
        {
          "formtabs":[
            {
              "MIGX_id":1,
              "caption":"Instellingen",
              "print_before_tabs":"0",
              "fields":[
                {
                  "MIGX_id":1,
                  "field":"tabmodule_title",
                  "caption":"Titel van tabbladen module",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"text",
                  "configs":"",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                },
                {
                  "MIGX_id":2,
                  "field":"tabmodule_tabs",
                  "caption":"Tabbladen",
                  "description":"",
                  "description_is_code":"0",
                  "inputTV":"",
                  "inputTVtype":"migx",
                  "configs":"tabListMIGX",
                  "sourceFrom":"config",
                  "sources":"[]",
                  "inputOptionValues":"",
                  "default":""
                }
              ]
            }
          ],
          "contextmenus":"",
          "actionbuttons":"",
          "columnbuttons":"",
          "filters":"[]",
          "extended":{
            "migx_add":"Voeg een tabbladen module toe",
            "formcaption":"Voeg een tabbladen module toe",
            "update_win_title":"Voeg een tabbladen module toe",
            "win_id":"tabmodule",
            "maxRecords":"",
            "multiple_formtabs":"",
            "extrahandlers":"",
            "packageName":"",
            "classname":"",
            "task":"",
            "getlistsort":"",
            "getlistsortdir":"",
            "use_custom_prefix":"0",
            "prefix":"",
            "grid":"",
            "gridload_mode":1,
            "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":"Naam van tabblad module",
              "dataIndex":"tabmodule_title",
              "width":"",
              "sortable":"false",
              "show_in_grid":1,
              "renderer":"",
              "clickaction":"",
              "selectorconfig":"",
              "renderoptions":"[]"
            }
          ]
        }
          • 4172
          • 5,888 Posts
          I get the same issue. Was thinking, this was working, but seems not.
          Will look into it, as soon, as I have a bit more time.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 43442
            • 5 Posts
            Thanks for looking into it anyway wink
              • 4172
              • 5,888 Posts
              This should be fixed now with version 2.5.8
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 43442
                • 5 Posts
                Awesome! Just tested it. It works smiley