We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33238
    • 388 Posts
    Hello Everyone.

    If I have a Gallery made with MigX...

    It is possible using another MigX add as many galleries I need?

    Similar than Structures (Revo Extra), but manually using MigX: https://modx.com/extras/package/structures

    Thank you very much.
      --
      ysanmiguel.com
      • 52064
      • 120 Posts
      you can use a TV migx that use another TV migx.

      (I was able to create a recursive migx to insert es. json data )
        FerX - Developer at Eracom s.r.l.
        • 33238
        • 388 Posts
        OK that is good in some way that is what I need a TV MigX that mannage another TV MigX, que question is how to implement it?

        and I how edit every TV once is called in the MigX list, because with right click/Edit it will open the main MigX but not the "children" ones, do you know what I mean?

        Thank you.
          --
          ysanmiguel.com
          • 52064
          • 120 Posts
          Create migx gallery:
          {
            "formtabs":[
              {
                "MIGX_id":25,
                "caption":"image",
                "print_before_tabs":"0",
                "fields":[
                  {
                    "MIGX_id":92,
                    "field":"image",
                    "caption":"Image",
                    "description":"",
                    "description_is_code":"0",
                    "inputTV":"",
                    "inputTVtype":"",
                    "validation":"",
                    "configs":"",
                    "restrictive_condition":"",
                    "display":"",
                    "sourceFrom":"config",
                    "sources":"",
                    "inputOptionValues":"",
                    "default":"",
                    "useDefaultIfEmpty":"0",
                    "pos":1
                  }
                ],
                "pos":1
              }
            ],
            "contextmenus":"",
            "actionbuttons":"",
            "columnbuttons":"",
            "filters":"",
            "extended":{
              "migx_add":"",
              "disable_add_item":"",
              "add_items_directly":"",
              "formcaption":"",
              "update_win_title":"",
              "win_id":"",
              "maxRecords":"",
              "addNewItemAt":"bottom",
              "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":"Image",
                "dataIndex":"image",
                "width":"",
                "sortable":"false",
                "show_in_grid":1,
                "customrenderer":"",
                "renderer":"this.renderImage",
                "clickaction":"",
                "selectorconfig":"",
                "renderchunktpl":"",
                "renderoptions":"",
                "editor":""
              }
            ]
          }
          



          then create migx multi_gallery

          {
            "formtabs":[
              {
                "MIGX_id":26,
                "caption":"Gallery",
                "print_before_tabs":"0",
                "fields":[
                  {
                    "MIGX_id":93,
                    "field":"title",
                    "caption":"Title",
                    "description":"",
                    "description_is_code":"0",
                    "inputTV":"",
                    "inputTVtype":"text",
                    "validation":"",
                    "configs":"",
                    "restrictive_condition":"",
                    "display":"",
                    "sourceFrom":"config",
                    "sources":"",
                    "inputOptionValues":"",
                    "default":"",
                    "useDefaultIfEmpty":"0",
                    "pos":1
                  },
                  {
                    "MIGX_id":94,
                    "field":"gallery",
                    "caption":"Gallery",
                    "description":"",
                    "description_is_code":"0",
                    "inputTV":"",
                    "inputTVtype":"migx",
                    "validation":"",
                    "configs":"gallery",
                    "restrictive_condition":"",
                    "display":"",
                    "sourceFrom":"config",
                    "sources":"",
                    "inputOptionValues":"",
                    "default":"",
                    "useDefaultIfEmpty":"0",
                    "pos":2
                  }
                ],
                "pos":1
              }
            ],
            "contextmenus":"",
            "actionbuttons":"",
            "columnbuttons":"",
            "filters":"",
            "extended":{
              "migx_add":"",
              "disable_add_item":"",
              "add_items_directly":"",
              "formcaption":"",
              "update_win_title":"",
              "win_id":"",
              "maxRecords":"",
              "addNewItemAt":"bottom",
              "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":"Title",
                "dataIndex":"title",
                "width":"",
                "sortable":"false",
                "show_in_grid":1,
                "customrenderer":"",
                "renderer":"",
                "clickaction":"",
                "selectorconfig":"",
                "renderchunktpl":"",
                "renderoptions":"",
                "editor":""
              }
            ]
          }


          Result in attachment.

            FerX - Developer at Eracom s.r.l.
            • 33238
            • 388 Posts
            OK this is good but this solve half of the problem...
            With this I can add galleries, but if I need more MigX content areas interrelated with the MigX galleries for example?
            so how can I add one content, then one gallery, then 2 content more etc...

              --
              ysanmiguel.com
              • 52064
              • 120 Posts
              you have to use the Multiple Formtabs function in migx.
                FerX - Developer at Eracom s.r.l.
                • 33238
                • 388 Posts
                Quote from: ferx77 at Apr 06, 2017, 03:49 PM
                you have to use the Multiple Formtabs function in migx.

                OK, but in the case that I have 10 different options, gallery, content, slideshow, etc... 10 tabs doesn't looks very good I think, and will be hard to edit.
                there is not a way to do it without tabs? something like call the MigX directly from a MigX master for example?

                [ed. note: Ysanmiguel last edited this post 7 years ago.]
                  --
                  ysanmiguel.com
                  • 52064
                  • 120 Posts
                  If you use Multiple Formtabs whene using the select changes the form below.
                  I suggest you do several tests.

                  Also look here smiley
                  https://forums.modx.com/thread/101632/crowdfunding-documentation-migx#dis-post-548884

                  sorry for my bad English :-(
                    FerX - Developer at Eracom s.r.l.