folding sections in tidler

150 views
Skip to first unread message

paulgilbert2000

unread,
Apr 27, 2021, 9:38:42 PM4/27/21
to TiddlyWiki
Hi,

i have 3 filter that lists tiddlers matching a specific field value, one filter  for "in house" another for "pending" and one for "with Vendor"

i want every filter have its results foldable , so in the below screen shot , i want it to be able  to click an arrow for example using the select widget which would collapse expand the tidlers with status  pending

i tried several things with no luck , the select widget doesnt seem to accept my filter,

Capture7.PNG

Mark S.

unread,
Apr 27, 2021, 10:46:46 PM4/27/21
to TiddlyWiki
You seem to have your select widget inside the main list filter, and so your selection gets repeated over and over.

You probably want to take the select widget outside the main list widget. Then your code will be something like:

<$select .... as in your text ...>....</$select>

<$list filter="[!has[draft.of]status{!!status}priority{!!priority}]">

(display results here)

</$list>

paulgilbert2000

unread,
Apr 28, 2021, 3:14:05 PM4/28/21
to TiddlyWiki
apologies , what i really meant was  using a details widget , i just want to expand /collapse the results for every filter , please let me know if you need any clarificaiton

David Gifford

unread,
Apr 28, 2021, 9:35:43 PM4/28/21
to TiddlyWiki
Put this between <$list.....> and </$list> (no details widget needed):

<details><summary><strong><$link><$view field="title"/></$link></strong></summary><$transclude field="text" mode="block"/></details>

paulgilbert2000

unread,
Apr 28, 2021, 11:10:58 PM4/28/21
to TiddlyWiki
Thanks David,

should i be replacing anything ? i just added your code , unless i am doing something wrong, it doesn't seem to work

Capture8.PNG

Charlie Veniot

unread,
Apr 28, 2021, 11:25:26 PM4/28/21
to TiddlyWiki
I see two <$list>, but only one </$list>

Unless my aging eyeballs are missing something ...

paulgilbert2000

unread,
Apr 29, 2021, 8:07:41 PM4/29/21
to TiddlyWiki
adding a second </$list>  didnt change anything
Reply all
Reply to author
Forward
0 new messages