We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51534
    • 13 Posts
    Ok, I've finally managed to get it work! It turns out I should be using tvFilters and not tvFilter. This change made it pull in the correct resources but the TV images weren't showing. Removing &includeTVList=`related_studio` made the images come back smiley

    Out of curiosity, why was &includeTVList=`related_studio` breaking the images?

    Thanks!
      • 4172
      • 5,888 Posts
      because you need to add all TVs to the includeTVList, if you use that property.
      Its faster, when you call only TVs, which you need.

      Without includeTVList getResources will fetch all TVs
      This can get slow with many TVs
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 51534
        • 13 Posts
        Quote from: Bruno17 at Dec 13, 2015, 11:19 AM
        because you need to add all TVs to the includeTVList, if you use that property.
        Its faster, when you call only TVs, which you need.

        Without includeTVList getResources will fetch all TVs
        This can get slow with many TVs

        Ok thanks Bruno
          • 30585
          • 833 Posts
          BTW @johnosmith, welcome to MODX! As frustrating as this has been, the ride should be a lot smoother from now on. You'll find that a lot of times, a syntax error is responsible for a great deal of pain. You'll blame MODX at first, but you'll eventually fall in love with it.

          In addition to the excellent official docs, there's a place I call MODX sanctuary: http://bobsguides.com, because of its incredible resources. @BobRay (the author of MODX: The Official Guide) runs that site including its blog. Also, MIGX is one of MODX's killer extras that make MODX a truly special CMS. You should definitely check it out (video | video). @Bruno17 is the guy behind it. These two gentlemen are just community members like you and I (albeit incredibly gifted).

          Cheers!
            A MODx Fanatic
            • 51534
            • 13 Posts
            Quote from: treigh at Dec 13, 2015, 11:57 AM
            BTW @johnosmith, welcome to MODX! As frustrating as this has been, the ride should be a lot smoother from now on. You'll find that a lot of times, a syntax error is responsible for a great deal of pain. You'll blame MODX at first, but you'll eventually fall in love with it.

            In addition to the excellent official docs, there's a place I call MODX sanctuary: http://bobsguides.com, because of its incredible resources. @BobRay (the author of MODX: The Official Guide) runs that site including its blog. Also, MIGX is one of MODX's killer extras that make MODX a truly special CMS. You should definitely check it out (video | video). @Bruno17 is the guy behind it. These two gentlemen are just community members like you and I (albeit incredibly gifted).

            Cheers!

            Thanks Treigh!
              • 3749
              • 24,544 Posts
              I'm glad you got it sorted. smiley

              I should mention that if it gets too slow, you'll want to consider using a custom table instead of TVs or at least switching to pdoResources.

              Another tip: I know it's counter-intuitive, but it will actually be faster if none of the TVs have a default value (though maybe less convenient for users).

                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting