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,

    Now mgix backend seams to works, I felt into the issue descride ealier by Susan :
    the rendered output list the first image at each row and not the one defined.
    the other fiel (title injeted into the ALT is ok).

    I was not able to understand what did Susan to solve this..

    Any help ?

    Thank you
      • 4172
      • 5,888 Posts
      whats your output of your TV without getImageList.

      Just put the TV-tag into the template or content?
      can you post this json-string here please?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36604
        • 268 Posts
        hi,

        I got it to work.
        Looks like it highly depends on the way the migx stuff is managed. May be the order of the steps.

        During the 1st implementation of the migx tv I made a mistake. I associated the different needed tv (the ones for the 'fields') to a template.

        Even if I've quickly corrected this, it was after I entered a couple of images into the migx tv.

        Whatever I tried , I had the issue I described.
        Plus another one: I did not see yet when I posted: the content of the description field (richtext tv) was never recorded. (I could see red little corner mark) in the grid when I clicked on the validation button.

        I destroyed all this stuff and recreated it using step by step procedure (again). I used slightly different names for the tv too. Just in case.
        I added the description field to the grid too. (was not before).
        This time everything seams to be ok.
        So many strange stuff like this with Revo 2.2...

        And could you update the official repository when something is moving on github ?

        Thank you

          • 3109 ☆ A M B ☆
          • 894 Posts
          I got an issue with MIGX and MODX 2.2.2 I upgraded a site from 2.0.8 to 2.2.2 and installed MIGX for the first time in 2.2.2

          It works perfectly fine in the backend its in the frontend that it's not displaying any of the tv images.

          At first it was giving some errors that it could not read or write to the migx php files so I changed the permissions on the folders to 755 in both assets/components/migx and core/components/migx and now I get no errors but it still does not display any images in the frontend.

          Any ideas?

          Here's my MIGX forms tab:

          [
          {"caption":"Sidebar Images", "fields": [
              {"field":"Image Caption","caption":"Image Caption","inputTV":"newsletter-image-text"},
              {"field":"image","caption":"Image","inputTV":"newsletter-image"}
          ]}
          ]


          Here's my MIGX Grid:

          [
          {"header": "Image Caption", "width": "160", "sortable": "true", "dataIndex": "Image Caption"},
          {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "image","renderer": "this.renderImage"}
          ]
          


          This is what it looks like in the backend:




          This is my tpl:

          <img src="[[++site_url]][[+newsletter-image]]" alt="[[+newsletter-image-text]]" width="225" height="149" style="margin-bottom:40px;">
          


          And this is my MIGX call:

          [[!getImageList? &tvname=`migx-newsletter` &tpl=`newsletter-sidebar-images`]]
          


          And this is what I'm getting as output:

          http://www.artaux.net/test.html

          Thanks.
            Benjamin Marte
            Interactive Media Developer
            Follow Me on Twitter | Visit my site | Learn MODX
            • 4172
            • 5,888 Posts
            what do you get with
            [[*migx-newsletter]]
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 8386 ☆ A M B ☆
              • 160 Posts
              Hey benmarte you template is wrong. It should be this:
              <img src="[[++site_url]][[+image]]" alt="[[+Image Caption]]" width="225" height="149" style="margin-bottom:40px;">

              I am not too sure if you can have space in placeholder names, you might want to change the Image Caption dataIndex to image-caption.
                • 3109 ☆ A M B ☆
                • 894 Posts
                @Silent Works dude thanks that was it, I always thought you had to use the TV name, so based on this I know understand its based on the field and not the TV name correct?.

                Thank you very much to both you and @Bruno17 for the assistance
                  Benjamin Marte
                  Interactive Media Developer
                  Follow Me on Twitter | Visit my site | Learn MODX
                  • 4172
                  • 5,888 Posts
                  yes, you need to add the fieldname as placeholder.
                  you can use one TV for multiple fields.

                  And now you no longer need to create TVs for using them in MIGX or MIGXdb

                  when you replace "inputTV":"newsletter-image" with "inputTVtype":"image"

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

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 3109 ☆ A M B ☆
                    • 894 Posts
                    @Bruno17 that is pretty cool, thanks for the tip
                      Benjamin Marte
                      Interactive Media Developer
                      Follow Me on Twitter | Visit my site | Learn MODX
                      • 5143
                      • 116 Posts
                      I'm not having much luck in other parts of the forum - so apologies for the re-post here.

                      Basically, whenever I have Migx installed, a page that uses the gallery plug-in refuses to show, and instead I get the following...

                      Fatal error: Call to a member function getSource() on a non-object in C:\wamp\www\hannahlovett\hannahlovett\core\cache\includes\elements\modsnippet\6.include.cache.php on line 122


                      ...followed by a table of errors/reports.

                      Uninstalling Migx gets rid of the issue, but that's obviously not an ideal workaround.

                      Revolution 2.2.5-pl (traditional)
                      migx-2.3.2-pl