We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42184
    • 27 Posts
    I have a template variable filter that I would only like to execute if a month has been selected. If a month has not been selected all resources should be returned.

    Here is my current filter.

    &tvFilters=`month==January`


    Can anyone help? smiley
      • 4172
      • 5,888 Posts
      you can try something like that:
      [[!getResources? 
      [[+selectedMonth:!empty=`&tvFilters=`month==[[+selectedMonth]]``]] 
      ]]
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!