We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36604
    • 268 Posts
    Hi,

    I use migx for 2 different purposes.
    One has been ok for monthes, and I'm trying to add a second use with migx. I've updated migx this very morning (2.62)

    Until now I was managing a slider (img + rich text in figcation) simply in a chunk with no higher level interace.
    I wanna add some smooth management using an migx to add/delete slides and eveything needed for each of them.

    Considering my needs:
    An H4 title, a short rich text, an image of course and its alt text, I've built this migx:


    form tab
    
    [
    {"caption":"Texte", "fields": [
    	{"field":"title_diapo","caption":"Titre H4"},
        {"field":"text_diapo","caption":"Légende diapo","inputTV":"diapo_caption"}
     
    ]},
    {"caption":"Diapo", "fields":[
        {"field":"la_diapo","caption":"Diapo","inputTV":"img_diapo"}
    	{"field":"alt_diapo","caption":"Details Logo","inputTV":"diapo_alt"}
    ]}
    ]


    Grid col.
    [
    {"header": "Titre", "width": "100", "sortable": "true", "dataIndex": "title_diapo"},
    {"header": "Caption", "width": "100", "sortable": "false", "dataIndex": "text_diapo"},
    {"header": "Image", "width": "230", "sortable": "false", "dataIndex": "la_diapo","renderer": "this.renderImage"},
    {"header": "Alt image", "width": "100", "sortable": "false", "dataIndex": "alt_diapo"}
    ]


    them I add new TV in relationship with this. The migx TV itself is associated to one existing tpl, the TV for the 'fields' are not tpl associated.

    Not error but on the page when clicking the button to add a slide, after a couple of second of a waiting state the form is totally blank.
    here's its internal html captured from the manager :
    <form id="ext-gen496" method="POST" class="x-panel-body x-panel-body-noborder x-form" style="padding: 15px; height: auto;">
    
     
    
    <input type="hidden" value="[{"field":"MIGX_id","tv_id":"migxid"}]" name="mulititems_grid_item_fields" class="mulititems_grid_item_fields">
    <input type="hidden" value="1" name="tvmigxid" class="tvmigxid">
    
    <div id="modx-window-mi-grid-update-27-tabs">
    </div>
    <br class="clear"></form>


    I saw also a lot of new input type but did not find any explanation for those.

    So What can I Check

    Thank you [ed. note: elz064 last edited this post 12 years, 8 months ago.]
      • 37042
      • 384 Posts
      Hey

      Are you missing a comma in your MIGX form tab?

      I might be wrong but should
      {"field":"la_diapo","caption":"Diapo","inputTV":"img_diapo"}

      be
      {"field":"la_diapo","caption":"Diapo","inputTV":"img_diapo"},


        ...
        • 36604
        • 268 Posts
        damn! I'm blind.

        I'll try again asap.

        Thank you
          • 36604
          • 268 Posts
          Definitively fixed.
            • 37042
            • 384 Posts
            Great! Not very often I get to fix someone elses MIGX issue smiley
              ...
              • 47562
              • 113 Posts
              I ran into a similar problem (missing end ] in a form tab). Thanks very much for getting me pointed in the right direction!

              Any chance of having MIGX flag such json parse errors? May help prevent future sore heads (from pounding themselves against the wall for a while...). smiley