I need to show a custom viewtemplate on tiddlers based on more than one criteria .
I need the custom viewtemplate to be shown on all of the tiddlers with below given combination of fields - fieldname-A:fieldvalue-A, fieldname-A:fieldvalue-B, fieldname-A:fieldvalue-C
How to do it ?
I know the filter to show the viewtemplate on tiddlers with fields fieldname-A:fieldvalue-A . How to add the rest of the field combinations also to the filter ?.
Of course, the “listed” approach will pull tiddlers that include any of those values, whether or not the field also contains other values. For most use cases I can imagine, that’s what I want, and I specifically would not want my filter to exclude tiddlers that have additional values in the field. Is this assumption ok for your use-case?
This is the filter I am using. I want the kanban viewtemplate to be shown in tiddlers with fields like gsd_type:project, gsd_type:realm, gsd_type:contact
But with the current filter kanban viewtemplate is shown on all tiddlers in the storylist.
I will use the regexp approach by @Mark_S for the time being because there is some issue with the other two solutions and kanban. Although the kanban viewtemplate is correctly displayed, I am unable to add task into the kanban with the other two solutions provided. But regexp approach doesn’t have this problem. I don’t know why its is happening like that. I will investigate.
Everything works now. Thank you @Mark_S for the help. Which one of the above three solutions should I use. Any suggestions ? @TW_Tones solutions will help me to understand about functions and use them in my wiki more.