Filter search function to use title of tiddle as parameter

Hi. I’ve recently started work on a Tiddlywiki as a cataligue for media I own. I have a filter command that I would like to use in a template but I cannot figure out how to direct the search to the tiddler title the template is being used in.

The filter command is below.

<$list filter= "[tag[Lib-Ref-Card]search:Content-Parent:regexp[Alien franchise]!tag[DNL]] :sort:alphanumeric:casesensitive[{!!Content-Title}addsuffix[]addsuffix{!!Counter}]">

I am trying to figure out how to replace the ‘Alien franchise’ for example with the tiddler title which would be Alien franchise in this example. My google skills and existing Tiddlywiki knowledge (which is limited) is failing me here.

Replace [Alien franchise] (inlcuding the square brackets) with <currentTiddler>, like this:

<$list filter= "[tag[Lib-Ref-Card]search:Content-Parent:regexp<currentTiddler>!tag[DNL]] :sort:alphanumeric:casesensitive[{!!Content-Title}addsuffix[]addsuffix{!!Counter}]">

-e

Hi Eric. This is one of the things I tried but it doesn’t work unfortuantly. (I’ve just retried it)I thought it could be because the search is looking at Content-Parent and not title but adding that field to my Alien franchise tiddler did not change the lack of results.

Perhaps your code is nested inside some other code that changes the value of currentTiddler (e.g., another $list widget). If this is the case, then you might try using <storyTiddler> instead of <currentTiddler> in your filter.

see https://tiddlywiki.com/#storyTiddler%20Variable

-e

This works. The code is nested in a <table> which might explain it. Thanks for the help.