how to : create ta of unique field values and count the number of occurances

47 views
Skip to first unread message

Marie Wray

unread,
Apr 13, 2021, 12:26:40 AM4/13/21
to TiddlyWiki

trying to keep it simple 
1. I have a list of YT Tube Videos, each video has it's own tiddler and tagged as [YTVideo] with some related content.
2. The instructor has organized them into a set of topics
----- I put her topic-names as a user-field called, uhmmmm... playlist
3. I want to create a summary but I get stumped at
3a. Count the number of Unique playlist-values (HELP!!!!)
3b. Count the number of Video-Tiddlers for each playlist (HELP!!!)

I am honestly lost on the second tier filtering.
For the count of unique values is that something I have to nest for?
Any help or examples is appreciated.

MW

Mat

unread,
Apr 13, 2021, 4:00:57 AM4/13/21
to TiddlyWiki
To count the number of items in a field you can do

[[mytiddler]get[myfield]enlist-input[]count[]]

the key here is "enlist-input" to split the field value into its separate items

To count a number of tiddlers tagged a certain way, you can do

[all[tiddlers+shadows]tag[mytag]count[]]

<:-)
Reply all
Reply to author
Forward
0 new messages