We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36786 ☆ A M B ☆
    • 209 Posts
    I'm having a hard time getting tvFilters to work in a getResources call. I am trying to grab the video embed code of just one random post held in a Tv. I will then apply getCache to change it randomly every day for a featured video in my site's footer. I simply can't get it to output anything:
    [[getResources?
    &parents=`2`
    &limit=`1`
    &tpl=`featuredVideoFooter`
    &tvFilters=`featureVideo==1`
    &includeTVs=`1`
    &processTvs=`1`
    &showHidden=`1`
    &sortby=`RAND()`
    ]]

    "featureVideo" is a radio select tv to either allow or disallow the video embed code from a post to be included in the featured videos.

    Chunk featuredVideoFooter:
    [[+tv.postVideo]]
      Ben Morrison
      Hacking templates to pieces since 2003
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Shouldn't that tpl have something in it besides the value of the TV that determines whether or not to show a video?
        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
        • 36786 ☆ A M B ☆
        • 209 Posts
        Sorry I wasn't being clear, and I didn't name those Tv's well to begin with:

        featureVideo: Radio tv to select if the content of tv postVideo should be shown
          Ben Morrison
          Hacking templates to pieces since 2003
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Ah. Well, that'll do it.
            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