registrierungs genervter Give it time and I think you may not think <$for-each>...</$for-each> would be a better name for the *list* widget
The filters that drive the ListWidget, SetWidget and Filtered Transclusions do a great deal including having their own each[] operators within. There is a very good reason not to call if "for each" because, because there is no single thing that you are listing "for each". In common code you may say "for each tiddler" or "for each user-field" but in filters you can combine these, including retrieving values. You can write filters that duplicate a for-each structure but these are only a subset of what can be achieved. List is well kept ambiguous if you ask me. Tony On Friday, April 5, 2019 at 4:16:56 PM UTC+11, registrierungs genervter wrote: > > Great! This did the trick - with a small modification. I had to set the > *variable* parameter of the *list* widget > <https://tiddlywiki.com/#ListWidget> to another value: > > <$list filter="[all[current]tagging[]limit[1]]" > *variable="currentTiddlerInTheList"*> > <<t>> > </$list> > > This needs to be done because the default name of the *variable* > parameter is "currentTiddler". My <<t>> macro also uses that name, > expecting it to point to the tiddler where it is used. But the *list* > widget invocation changes it to the first tiddler tagged with the current > tiddler. If i set the variable to another value, then *currentTiddler* in > the <<t>> macro will stay unchanged and it works. > > Thanks for pointing me in the right direction. > > --- > > I didnt fully understand how the list widget works. It executes its > content (as a template) for each tiddler in its result list. Also, > interesting that > > <$list> > </$list> > > and > > <$list></$list> > > results in two different things. In the first case it uses the linebreak > as the template (which results in nothing being shown), in the second it > uses a default template (which is a link pointing to the tiddler). > > --- > > In my opinion <$for-each>...</$for-each> would be a better name for the > *list* widget, because *list* is an ambigous name - are we talking about > the noun *a list* or about the action *to list something*. but thats > another topic. > > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6487bea6-926e-4dec-93c2-79511c908d85%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.