Matybe I wasn't clear enough....
I can get input into a field ("search") and assign it to a variable eg.
\define thisList()
<$list filter="[tag[$(TestVariable)$]]">
\end
<$set name=TestVariable value={{!!search}}>
TestVariable is <<TestVariable>>
This list is <<thisList>>
<br>
</$set>
<$edit-text field="search" default="" placeholder="enter text to search"
tag="input"/>
<br>
this will list all tiddlers tagged with the value of the field "search"
but I can't work out how to use that search term in another existing macro
as a filter such as....
<<timeline-vertical filter:"[tag[search]sort[date]]" date:"date">>
or
<<timeline-vertical filter:"[tag[search] sort[date]]" search:"$(search)$"
date:"date">>
any ideas please?
On Friday, 18 June 2021 at 00:11:12 UTC+1 Patrick RB wrote:
> It look's like this is a common issue for newbies, but I'm using timelines
> plugin to display tiddler filtered by tags (in this case "snippet")
>
> <<timeline-vertical filter:"[tag[snippet]sort[date]]" date:"date"
>
> To aid quick searches and avoid editing the tiddler I have created a text
> box input to set a field to inject input into tag[.....] and a custom date
> field
>
> I can create, set and check the search field has the expected text, but
> cannot get the timelines macro to accept the search field text, though the
> date field works fine.
>
> can any of you real developers help? Thanks!
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/82c05d8e-df05-408e-8ab5-9cda2c2eed8en%40googlegroups.com.