Put the title list to the variable for further modification

46 views
Skip to first unread message

Shareda

unread,
Oct 15, 2020, 1:14:03 PM10/15/20
to TiddlyWiki
Hello, community! I am making a flexible many step filtration of a tiddler list with 4 or 5 $edit-text or $select widgets. And I would like to show (at least) the current count of the filtered tiddlers on each step.

How can I put into a variable the result of each filtering step? And what is the syntax in a filter to use a variable as an input header list?
 
I start with this:
<$edit-text field="search.words" tag="input" type="search" class="tc-popup-handle" style="width: 300px;"/><br>
<$edit-text field="search.phrase" tag="input" type="search" class="tc-popup-handle" style="width: 300px;"/><br>
<$edit-text field="search.regexp" tag="input" type="search" class="tc-popup-handle" style="width: 300px;"/><br>
<$edit-text field="search.keywords" tag="input" type="search" class="tc-popup-handle" style="width: 300px;"/><br>
<$edit-text field="highlight" tag="input" type="search" class="tc-popup-handle" style="width: 300px;"/><br>

Shareda

unread,
Oct 15, 2020, 1:22:26 PM10/15/20
to TiddlyWiki
SOLVED. Here is the syntax from the SetWidget example with my additional enlist line:
<$set name="myVariable" filter="[tag[HelloThere]]">
<$text text=<<myVariable>>/>
{{{ [enlist<myVariable>count[]] }}}
</$set>

четверг, 15 октября 2020 г. в 23:14:03 UTC+6, Shareda:
Reply all
Reply to author
Forward
0 new messages