Question, Filter to match any title field values

Is there a way, in 1 filter, to get all tiddlers tagged “event” where a title field, named “people”, contains any one (or more) values from a title list field (named personlist) in the current tiddler.

I use this to find a single match, where personlist has only 1 title.

[tag[event]contains:people{!!personlist}]

Eg. I know this is not the correct usage of the match operator, but I want to try and illustrate what I want.

[tag[event]match:people{!!personlist}]

Any ideas?

A quick answer is to enlist the person list then test it;

[{!!personlist}enlist-input[]match<currentTiddler>]

untested

@TW_Tones Thanks. Yeah, I’m not following this to see how it might be used with me getting events. I need a single filter to return events, as I need to supply this filter to a plugin. thanks.

To be clear is an event any tiddler tagged event?
but what value do you want to compare with the content of personlist? is it the title of the currentTiddler, that with the event tag?

Will this work for you?

[tag[event]] +[list[personlist]match<currentTiddler>]
perhaps to get the title
[tag[event]] +[list[personlist]match<currentTiddler>then<currentTiddler>]

  • Untested

Translating to your fieldnames the syntax of what seems to work for me in an analogous case:

{{{ [<currentTiddler>get[personlist]enlist-input[]listed[people]tag[events]] }}}
1 Like

Yes. Tiddlers tagged “event”, to be compared with the “people” in the event.

Thank you. This worked for me.

1 Like