We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6206
    • 9 Posts
    I was trying to get "notempty" field with link in it. But If I write this, I get a mistake:

    [[!getImageList? &tvname=`tvname` 
    &tpl=`@CODE:[[+linkField:notempty=`<a href="[[+linkField]]">text_of_link</a>`]]`
    ]]
    




    If I remove "notempty", everything is OK.

    [[!getImageList? &tvname=`tvname` 
    &tpl=`@CODE:<a href="[[+linkField]]">text_of_link</a>`
    ]]
    




    If I remove only symbol "=", everything is OK, but link is broken, of course:

    [[!getImageList? &tvname=`tvname` 
    &tpl=`@CODE:[[+linkField:notempty=`<a href"[[+linkField]]">text_of_link</a>`]]`
    ]]
    


    I tested it. I wrote only "=" with "notempty" and I got a mistake:

    [[!getImageList? &tvname=`tvname` 
    &tpl=`@CODE:[[+linkField:notempty=`[[+linkField]] =`]]`
    ]]
    




    Is it a bug or did I make a mistake in the code? [ed. note: CyberHamster last edited this post 14 years, 9 months ago.]
      • 4172
      • 5,888 Posts
      May be this doesn't work because of tag-processing-order.
      Try to create a chunk with this code:

      [[+linkField:notempty=`<a href="[[+linkField]]">text_of_link</a>`]]


      and use this snippet-call:

      [[!getImageList? 
      &tvname=`tvname`
      &tpl=`myChunk`
      ]]


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

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 6206
        • 9 Posts
        Thank you very much, Bruno17, the solution with chunk works smiley
          • 36604
          • 268 Posts
          SOLVED : the components/migx/connector.php had to be 755.
          The question is why all of those packages are not set properly...



          Hi,

          I have this issue:
          Trying to use the Flexibility package MultiitemGrid or Setting up a new multi item grid, when I click on the button (add an element) to choose an image file, the panel opens, "loading" is displayed...but never ends and no file tree is coming up.

          I totally removed the mgix package and reinstalled it. revo is 2.15 (initially installed as 2.13, then updated to 2.15)

          Thank you for any help [ed. note: elz064 last edited this post 14 years, 9 months ago.]
            • 15083
            • 697 Posts
            This is an incredible extra Bruno, hat off.
            I don't suppose you have added simple validation smiley

            ???
              • 6206
              • 9 Posts
              I upgraded to ModX Revo 2.2.0-pl2. Now I can't edit or create the items. Then I'm trying to do it, I get blank page with "Loading...".
                • 4172
                • 5,888 Posts
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 22347 ☆ A M B ☆
                  • 29 Posts
                  Having an issue with an image tv thumb not displaying correctly in the migx grid view.

                  The image displays fine in the migx form view and when I make a migx call on a page.

                  The problem I think lies in the base_url in the context settings. migx is using the correct context base_path on the form and on the page call but I think it may be using the managers base_path for displaying the thumbnail in the migx grid view? Not sure. When I take the renderer off it just shows the path as "images/profile.jpg" Maybe its not using a base path at all on the grid view?

                  Any suggestions or thoughts?

                  Here is what I have in the Form Tabs:

                  [{
                    "caption":"Profiles",
                    "fields": [{
                      "field":"first_name",
                      "caption":"First Name"
                    },{
                      "field":"last_name",
                      "caption":"Last Name"
                    },{
                     "field":"migx_image","caption":"Profile Image","inputTV":"image"
                    }]
                  }] 



                  Here is what I have in the Form Tabs:

                  [
                  {"header": "First Name", "width": "160", "sortable": "true", "dataIndex": "first_name"},
                  {"header": "Last Name", "width": "160", "sortable": "true", "dataIndex": "last_name"}, 
                  {"header": "Image", "width": "50", "sortable": "false", "dataIndex": "migx_image","renderer": "this.renderImage"}
                  ]
                    "Give a company a website, and they will be successful for now...
                    Give a company a long-term web strategy, and they will be successful for a lifetime."

                    Company Website: http://www.orbitalalliance.com
                    Company Blog: http://www.orbitalalliance.com/blog
                    • 4172
                    • 5,888 Posts
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 22347 ☆ A M B ☆
                      • 29 Posts
                      Hey Bruno, Ya I grabbed your latest commits on those files before I started testing it out.

                      Would it use a different base path in the migx form compared to the migx grid view? Seems like it is using the same base path but I am not sure. It's weird that the image renders with the correct path on the migx form but not the migx grid. Maybe I am missing something. I just upgraded to 2.1.5pl to see if it was something with modx itself. I am thinking about upgrading to 2.2.0pl2 but I am not sure that is going to make a difference.

                      Any other ideas of what it could be?
                        "Give a company a website, and they will be successful for now...
                        Give a company a long-term web strategy, and they will be successful for a lifetime."

                        Company Website: http://www.orbitalalliance.com
                        Company Blog: http://www.orbitalalliance.com/blog

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