We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered No TV Output

    • 18367
    • 834 Posts
    Hi,

    can anyone see what I'm not seeing?

    The tpl chunk below calls everything except the tv.teaser info.

    I've even tried it with different tv's and I still get zip.

    Is there something I'm missing here?

    Thanks

    <li>             <a href="[[~[[+id]]]]"><img src="http://www.armadalebedandbreakfast.com.au/images/roomgallery/master_bedroom_thb.jpg" alt="" class="thumb" ></a>
                   
    <div class="recent_entry"><a href="[[~[[+id]]]]" title="[[+pagetitle]]" class="link-name">[[+pagetitle]]</a> </div>
    
    
                                                   <div class="recent_entry_short">bbb  [[+tv.teaser]] </div>
                            </li>




    This question has been answered by eladnova. See the first response.

      Content Creator and Copywriter
      • 4172
      • 5,888 Posts
      whats your snippet-call?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
      • discuss.answer
        • 37042
        • 384 Posts
        Are you calling this Chunk with GetResources?

        if so, make sure your GR call adheres to the section here titled "Displaying Template Variables with getResources"
        http://rtfm.modx.com/extras/revo/getresources

        To reduce retrieval time, getResources does not get TV values by default. If you want to display TVs, you should include the following parameters:

        &includeTVs=`1` &processTVs=`1`

          ...
          • 18367
          • 834 Posts
          Ah,

          that did the trick. Many thanks



          Quote from: eladnova at May 12, 2014, 04:33 AM
          Are you calling this Chunk with GetResources?

          if so, make sure your GR call adheres to the section here titled "Displaying Template Variables with getResources"
          http://rtfm.modx.com/extras/revo/getresources

          To reduce retrieval time, getResources does not get TV values by default. If you want to display TVs, you should include the following parameters:

          &includeTVs=`1` &processTVs=`1`

            Content Creator and Copywriter
            • 37042
            • 384 Posts
            Glad it worked Mark.
            I noticed your chunk uses absolute urls for the images. Any reason for this?
              ...
              • 18367
              • 834 Posts
              Quote from: eladnova at May 12, 2014, 07:35 AM
              Glad it worked Mark.
              I noticed your chunk uses absolute urls for the images. Any reason for this?

              No reason, I normally use relative.
                Content Creator and Copywriter
                • 37042
                • 384 Posts
                Cool. I was just curious.

                What I've done in the past where I've had a few pages and each had a thumb was to

                • create a TV for the image
                • call the image using getResources
                • constrain the image size using PHPThumb or similar

                So
                 <a href="[[~[[+id]]]]"><img src="http://www.armadalebedandbreakfast.com.au/images/roomgallery/master_bedroom_thb.jpg" alt="" class="thumb" ></a>


                would become

                 <a href="[[~[[+id]]]]"><img src="/assets/images/[[+tv.room-thumb]]" alt="[[+tv.thumb-title]]" class="thumb" ></a>


                Ignore if thats no use to you but it's worked well for me.
                  ...