add tvWhere parameter to allow filtering by template variable