We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4172
    • 5,888 Posts
    is added for next release. Thanks!
      -------------------------------

      you can buy me a beer, if you like MIGX

      http://webcmsolutions.de/migx.html

      Thanks!
      • 8930
      • 44 Posts
      Hi Bruno,

      many thanks for this incredible addon... I’m really impressed!

      I made an upgrade from 2.08 to 2.1RC4 to use input options. I’ve found that codeMirror need to be desactivated for MIGX to work properly (in system settings). Unless, the grid works but the overlay with tabs doesn’t show.


      One question :
      I use MIGX with a TV list. The list is in a classic format : Item1==Value1||Item2==Value2||...

      After selecting the correct element, it’s the value which appears in the grid. Is there a way to show the Item Name?

      Thanks
        Equilibre Webdesign - Conception et r
        • 4172
        • 5,888 Posts
        well, the window returns only the selected value from the form. So, the grid doesn_t know about the Item-name at this time.
        A possible way, if you want to see the selected Item-name:

        Use input-option-values like
        Item1==Item1:Value1||Item2==Item2:Value2||Item3==Item3:Value3||Item4==Item4:Value4


        This way you would see both, the Name and the value in the grid.
        You could create a column-renderer which extracts the Name, if you only want to see the Name.

        For the Frontend you can extract the value, for example by an special outputfilter.
          -------------------------------

          you can buy me a beer, if you like MIGX

          http://webcmsolutions.de/migx.html

          Thanks!
          • 8930
          • 44 Posts
          Thank you for this quick reply. It’s a very good idea, I’ve done it and it works!

          It works on my dev server but not on my production server. I’ve made the same upgrade operations. The grid is OK but the overlay appears and disappears instantaneously.... firebug give those error messages :
          http://mlab.equilibre-webdesign.fr/assets/components/migx/connector.php?HTTP_MODAUTH=modx4dc72315271c53.17286589&action=mgr%2Ffields&class_key=modDocument&itemid=0&record_json=%5B%7B%22phrase%22%3A%22%22%7D%5D&tv_id=51&tv_name=Prompteur

          <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
          <html><head>
          <title>500 Internal Server Error</title>
          </head><body>
          <h1>Internal Server Error</h1>
          <p>The server encountered an internal error or
          misconfiguration and was unable to complete
          your request.</p>
          <p>Please contact the server administrator,
          [email protected] and inform them of the time the error occurred,
          and anything you might have done that may have
          caused the error.</p>
          <p>More information about this error may be available
          in the server error log.</p>
          </body></html>

          It appears too for this call :
          http://mlab.equilibre-webdesign.fr/assets/components/migx/connector.php?HTTP_MODAUTH=modx4dc72315271c53.17286589&action=mgr%2Ffields&class_key=modDocument&itemid=0&record_json=%5B%7B%22phrase%22%3A%22%22%7D%5D&tv_id=51&tv_name=Prompteur

          I disabled URL rewriting (in system settings and .htaccess)... nothing chage. I tried on two different migx TV and nothing works. I’m lost! huh

          HELP!!!!!



          Here are the different parts :
          TABS
          [
          {"caption":"Ajouter un auteur", "fields": [
          {"field":"AuteurMlab","caption":"Auteur Mlab","inputTV":"MIGX_AuteursMlab"},
          {"field":"AuteurExt","caption":"Autre auteur","inputTV":"MIGX_AuteursExt"}
          ]}
          ]

          GRID
          [
          {"header": "Auteur MLab", "width": "160", "sortable": "true", "dataIndex": "AuteurMlab"},
          {"header": "Autre auteur", "width": "150", "sortable": "false", "dataIndex": "AuteurExt"}
          ]

          MIGX_AuteursMlab is a list TV (unique choice) populate with a snippet which get all members of the lab
          @EVAL return $modx->runSnippet(’setTVList’,array("parent"=>"3","field" =>"pagetitle","templateid"=>"6","propertyValue"=>"1","emptyFirstLine"=>"1"));

          MIGX_AuteursExt is a text field



          I repeat that everything is working on my dev server (see screenshot)

          Thank you very much in advance for your help...



            Equilibre Webdesign - Conception et r
            • 4172
            • 5,888 Posts
            hmm..... can’t think what goes wrong on your live-server. Is it possible to have access to your backend?
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 4172
              • 5,888 Posts
              enzo,
              the problem was permissions on assets/components/migx/connector.php, seems to work now.
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!
                • 8930
                • 44 Posts
                wooowwwwww!!!!! It works perfectly!

                You’re the best man.... thank you so much for you help.

                One detail concerning the MIGX package : during the installation process, you can’t choose to accept or not the license, the acceptation is automatic.

                Cheers
                  Equilibre Webdesign - Conception et r
                  • 31671
                  • 13 Posts
                  Hello All,
                  I would like to set up a small gallery with migx and getPage?.
                  What I´d like to have is an big image and a pagination like 1 of 9.
                  A klick on the image should change the image to the next image ( 2 of 9) etc.
                  I have the migx extra running, btw. it is a fantastic extra for modx. Thank you, Bruno!
                  At the moment it looks like this:

                  chunk: migx_image
                  [[!getImageList? &tvname=`multiItemsGrid` &tpl=`ContGalTpl` &offset=`0` &limit=`1`]] 
                  
                  [[!getPage?
                    &element=`getImageList`
                    &elementClass=`modSnippet`
                    &tpl=`migx_getPageTpl`
                    &includeTVs=`1`
                    &processTVs=`1`
                    &offset=`0`
                    &limit=`1`
                  ]]
                  
                  [[!+page.nav:notempty=`
                  <div class="paging"> 
                    [[!+firstItem]]-[[!+total]]  
                  </div>
                  `]]
                  



                  The tpl for the big image: ContGalTpl
                  How would I get the link to the next image?

                               <div id="ContGal">
                                 <a href="????" title="[[+title]]">
                                          <img src="[[+image]]" alt="[[+title]]"/>
                                      </a>
                              </div>
                  



                  Could someone give me to a starting point to get that running?

                  At the moment my installation is Revolution 2.1.0-rc3
                  and migx is 1.0.0rc2
                    • 14951
                    • 151 Posts
                    For some reason, the only field I’m getting is "Title". I loaded the example property set, and have followed the wiki step by step. The TV seems to be working exactly as it should, but only with a single title. When I change the Form Tabs content..it doesn’t seems to make a difference. It’s almost as if it is ignoring that and reverting to a default. Any troubleshooting ideas?

                    Thanks!
                    -Jared

                    EDIT: Forgot to mention..I’m running the latest version of Modx 2.1 RC4.
                      • 4172
                      • 5,888 Posts
                      @vittel

                      you can try this:

                      create a snippet ’handleOffset’
                      <?php
                      
                      switch ($task) {
                          case 'set':
                              if (isset($_GET['offset'])) {
                                  $total = $modx->getPlaceholder('migx_total');
                                  $offset = $_GET['offset'] + 1;
                                  $offset = $offset >= $total ? 0 : $offset;
                              } else {
                                  $offset = 1;
                              }
                              return $offset;
                              
                              break;
                          case 'get':
                              $offset = isset($_GET['offset'])? $_GET['offset'] : 0;
                              $modx->setPlaceholder('migx_offset+1',$offset+1);
                              return $offset;
                          break;    
                      
                      }
                      


                      [[!getImageList? &offset=`[[!handleOffset? &task=`get`]]` &limit=`1` &totalVar=`migx_total` &tvname=`multiItemsGrid`&tpl=`ContGalTpl`]]
                      [[+migx_offset+1]]/[[+migx_total]]
                      


                      your chunk ContGalTpl:
                      <a href="[[~[[*id]]? &offset=`[[!handleOffset? &task=`set`]]`]]" title="[[+title]]">
                         <img src="[[+image]]" alt="[[+title]]"/>
                      </a>
                      



                      Hi Jared,
                      which Revo-version?
                      in 2.1 don’t use the properties, but use the input-property-fields for formtabs and columns (columns.txt and tabs.txt)



                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!

                      This discussion is closed to further replies. Keep calm and carry on.