We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30319
    • 406 Posts
    <rant>
    Could we please have a separate forum for MigX??
    This thread is 35 pages long and becoming unwieldy!!
    Having a separate forum for MigX would enable things to be a more reasonable 1 thread per question instead of 4,594 questions in the same thread.
    </rant>

    That said, I've finally got code/images etc. working correctly for MigX.
    It's for a slideshow.

    HOW do I make the FIRST image in the MigX list have a different class than subsequent images in the list??
    E.g. the first image must have class=item active, all subsequent images must have class=item

    How do I do this huh???


    Thank you, Tom
      • 36926
      • 701 Posts
      Quote from: TomMLS at Feb 24, 2012, 04:41 PM
      9

      HOW do I make the FIRST image in the MigX list have a different class than subsequent images in the list??
      E.g. the first image must have class=item active, all subsequent images must have class=item


      You can use
       [[+_first]]
      and use a output if filter to see it it's returns 1.

      Edit: prob helps if i wrap the code in the correct tags [ed. note: bennyb last edited this post 12 years, 2 months ago.]
      • @TomMLS Your wish is granted. Now MIGX has it's own sub-forum.
          Author of zero books. Formerly of many strange things. Pairs well with meats. Conversations are magical experiences. He's dangerous around code but a markup magician. BlogTwitterLinkedInGitHub
          • 30319
          • 406 Posts
          Quote from: bennyb at Feb 24, 2012, 04:55 PM


          You can use
           [[+_first]]
          and use a output if filter to see it it's returns 1.


          How does the above work for this chunk code??
          <div class="item"><img src="[[+image]]" alt="[[+title]]"/>


          For example I want to say
          if [[+_first]]=true then class="item active" else class="item"


          This can't be that hard but the syntax of the above statement may not be possible within the chunk??

          Thank you, Tom
          [ed. note: TomMLS last edited this post 12 years, 2 months ago.]
            • 30319
            • 406 Posts
            Quote from: smashingred at Feb 24, 2012, 05:10 PM
            @TomMLS Your wish is granted. Now MIGX has it's own sub-forum.

            Thank you!! smiley smiley
            • After upgrading a site from 2.1.5 now the individual image TVs show the ./image.jpg path, but appear to work anyway. While the path in the TV field is shown as ./image.jpg, the displayed thumbnail shows it's being passed to phpthumbof as image.jpg.

              MIGx, however, has problems; the original image thumbnails show in the resource's TV editing field, but not in the page. Also, it can't open the file browser to select a new or to edit an existing image.

              phpThumbOf is complaining about a node_name or server_name not being provided; it's trying to work with domain.comimage.jpg [ed. note: sottwell last edited this post 12 years, 2 months ago.]
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 4172
                • 5,888 Posts
                do you have the same result with the latest from github?
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                • I completely removed the 1.1 (or whatever version it originally was) and downloaded and installed the 2.0 Beta package (via Package Manager) and it now works.

                  A bit buggy still; it doesn't respect the Media Source assignment and if I use the limited Media Source (like the Files tab there's a drop-down to select the Media Source) it can't find the image file selected even for its own thumbnail, but if I use the default Filesystem source it's OK.

                  Some of the ExtJS flashy stuff like the little red corners in the unsaved fields doesn't work right, but basically it's usable. I expect the minor bugs will get worked out as it moved from beta.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 4172
                    • 5,888 Posts
                    try to use this version from github:
                    https://github.com/Bruno17/MIGX/downloads
                    Hopefully it respects the TV's mediasources now correctly. At least for me it does.

                    If that is working correctly I will make a new beta-package and upload that into the extras-repo

                    The little red corners - I didn't investigate that more precisely. Its default behavior of the grid. Need to find a way how to remove them after one clicks the save - resource - buttton. But has no priority for me.
                    Perhaps someone else can tell how to do it.
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                    • Nope... the TV is assigned to a Media Source that uses assets/images/gear/

                      The TV for a resource opens the file browser to Filesystem, with the Gear media source in the select drop-down. If I use it, the images never show up. If I use the Filesystem source then it works.

                      I replace core/components/migx/ and assets/components/migx with the ones from the github download. Cleared cache (manually deleted all the cache directories), flushed session, cleared browser cache and cookies.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org

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