We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6094
    • 60 Posts
    So, I need to return results in a particular way that I’m having some difficulty with. Let’s say I have a TV called [[*value]] and this TV has limited values within the template of 1,2 or 3. So delimited 1||2||3, easy enough. There are no empty values it will be one of the 3 options. N

    Next step is a chunk that displays the values for [[*value]] at the parent level. We will call it valueChunk and it will look something simple like.
    <p>[[+tv.value]]</p>
    


    And the getResource call to display the chunk on the page with the value of 1:

    [[!getResources? &parents=`[[*id]]` &tpl=`valueChunk` &includeTVs=`1` &processTVs=`1` &tvFilters=`value==1`]]


    This will then display all the records for where [[*value]] has a value of 1. Once again easy enough. So I should be able to display the records by changing the value from 1 to 2 and 3, that’s no problem.

    Now let’s say I want to pass in a variable that will load 1, 2 and 3, is this possible? I’m envisioning something like:

    [[!getResources? &parents=`[[*id]]` &tpl=`valueChunk` &includeTVs=`1` &processTVs=`1` &tvFilters=`value==1,2,3`]]


    However that’s not going to work and I’m not sure what the proper syntax would be. Any help is greatly appreciated.