We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    You cleared the site cache and double checked the TV IDs and Resource ID and the spelling of the snippet name versus the tag?

    Try pasting this code into a new resource with just this content and see if you get anything:

    <p>TV1: [[!GetTvStuff? &tvId=`16` &resourceId=`32` &render=`0`]]</p>
    <p>TV2: [[!GetTvStuff? &tvId=`17` &resourceId=`32` &render=`0`]]</p>


      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
      • 3749
      • 24,544 Posts
      Doh. There's a typo in my code (that will teach me to post code off the top of my head at 3 a.m.):

      Line five should be:

      $render = isset($scriptProperties['render']) && $scriptProperties['render'];


      not

      $render = isset($scriptProperties['render']) && $scriptProperties['render']);



      Remove the extra ) at the end of the line.


      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        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
        • 40088
        • 708 Posts
        Quote from: BobRay at Jul 20, 2012, 04:13 AM
        Doh. There's a typo in my code (that will teach me to post code off the top of my head at 3 a.m.):

        Line five should be:

        $render = isset($scriptProperties['render']) && $scriptProperties['render'];


        not

        $render = isset($scriptProperties['render']) && $scriptProperties['render']);



        Remove the extra ) at the end of the line.

        Nice! Works a treat.

        Bob, thank you. Susan, thank you.
          Todd
          • 3749
          • 24,544 Posts
          I'm glad you got it working. smiley


          BTW, I fixed the code in the example early in this thread, and changed the snippet name to ShowTv to avoid confusion.



          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html
            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