This finds your unique contexts, puts them in the variable "item", and lists them:
<$list filter="[tag[Task]each[context]get[context]]" variable="item"> <<item>> <br/> </$list> The "each" operator removes duplicates. The "get" operator gets the value. I've never really understood why "each" comes before "get", but that is the recipe you find at tiddlywiki.com. HTH On Monday, April 6, 2020 at 8:37:48 AM UTC-7, David wrote: > > I have a bunch of tiddlers with the tag of "Task" and a field called > "context" > > I'd like to loop over them, or whatever, and end up with a variable or > tiddler that is a list of all the different values found in that "context" > field. > > I then plan to loop over that and show some stuff. Right now, that list > is static and manually created by me. > > I don't know if there is a command to do it efficiently, or if a loop is > necessary. > > For example... if tiddlers look like... > > Name/Title | Context (Field) > --------------|-------------------------------------- > Clean Gutters | Home > Wash Car | Home > Call School | Work > Buy bolts | Out > > > Then it should save "Home Work Out" into a variable or tiddler. I guess > variable would be best, if possible. > > Here is some code to loop over the tag in question, and this transclude > command outputs the context, but of course, there are repeats (which I > don't want). And of course, this doesn't save it to a variable. But maybe > it's a good start? > > <$list filter="[tag[Task]]" variable="item"> > <$transclude tiddler=<<item>> field="context" /> > </$list> > > > -- 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/7a7c3e1a-acd5-4a32-b338-62a63099e056%40googlegroups.com.

