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

    I’ve created a TV called ’category’ with input as tag and option values ’Newsfeed||Events’.
    After assigning the resources’ category TV to either Newsfeed or Events, I entered the following into my template:

    For the Newsfeed section of the page,
                    [[getResources?
                        &parents=`2`
                        &limit=`2`
                        &includeContent=`1`
                        &resources=``
                        &showHidden=`1`
                        &tpl=`ChapterNews`
                        &sortby=`publishedon`
                        &sortdir=`DESC`
                        &tvFilters=`category==Newsfeed`
                    ]]
    


    and below it, the Events section of the page,
                    [[getResources?
                        &parents=`2`
                        &limit=`4`
                        &resources=``
                        &showHidden=`1`
                        &tpl=`ChapterNews`
                        &sortby=`publishedon`
                        &sortdir=`DESC`
                        &tvFilters=`category==Events`
                    ]]
    



    Both display normally without the ’&tvFilters’ selection, but ’&tvFilters=`category==Newsfeed`’ never works. I have tried renaming the values. Interestingly enough, when I switched the &tvFilters, category==Events worked in the Newsfeed section of the page, but category==Newsfeed did not work in the Events section of the page.

    Please help!
      • 22840
      • 1,572 Posts
      Try calling them uncached, IE:
      [[!getResources?
      &parents=`2`
      &limit=`2`
      &includeContent=`1`
      &resources=``
      &showHidden=`1`
      &tpl=`ChapterNews`
      &sortby=`publishedon`
      &sortdir=`DESC`
      &tvFilters=`category==Newsfeed`
      ]]

      [[!getResources?
      &parents=`2`
      &limit=`4`
      &resources=``
      &showHidden=`1`
      &tpl=`ChapterNews`
      &sortby=`publishedon`
      &sortdir=`DESC`
      &tvFilters=`category==Events`
      ]]
        • 27780
        • 5 Posts
        Didn’t work.

        But when I changed the input to text without any input values or default value, it behaved like it should. But I would really like the default to be set to Newsfeed to reduce some work. Hopefully someone has other suggestions?

        Thanks.