Can you provide some tiddlers with participants list (e.g. King George, Queen Elizabeth, etc.) Having to guess at someone's data structure makes helping difficult.
Thanks! On Wednesday, August 25, 2021 at 9:07:00 AM UTC-7 Sandip Deshmukh wrote: > Thanks, Mark. > > > On Wednesday, August 25, 2021 at 9:16:42 PM UTC+5:30 Mark S. wrote: > >> Try >> >> <ul> >> <$list filter="[contains:participants<currentTiddler>!sort[at]]"> >> >> <li><$link /></li> >> </$list> >> </ul> >> > > The first block of code worked perfectly. > > >> >> If that works inside tiddler "King George", then you can paste the text >> into a tiddler and tag it "$:/tags/ViewTemplate" and it will work >> everywhere. But you probably don't want it to work *everywhere*. So you >> can wrap it with a list that only includes tiddlers that have >> *participants* : >> >> <$list filter="[all[current]has[participants]]"> >> <ul> >> <$list filter="[contains:participants<currentTiddler>!sort[at]]"> >> >> <li><$link /></li> >> </$list> >> </ul> >> </$list> >> > > But this did not. I had named the tiddler containing this code > 'ParticipatedList' and tagged it as suggested by you. > > *Also, what I am aiming at is not the list. I want to transclude the > matching tiddlers.* > > I have edited the original question to say so explicitly. I earlier > thought that {{}} meant it automatically. > > > >> >> >> On Wednesday, August 25, 2021 at 8:07:21 AM UTC-7 Sandip Deshmukh wrote: >> > Here is a working dynamic list I have: >>> >>> <ul> >>> <$list filter="[contains:participants[King George]!sort[at]]"> >>> <li><$link /></li> >>> </$list> >>> </ul> >>> >>> This works perfectly. >>> >>> Can I convert this into a template --- 'ParticipatedListTemplate'? >>> >>> So, I can sit in a tiddler 'King George', write >>> >>> {{||ParticipatedListTemplate}} and get the same list transcluded. >>> >> >>> And if it is a template, I can do the same in 'Queen Elizabeth' tiddler, >>> too. >>> >>> Or is there a better way of achieving the same thing? >>> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/43391942-ba79-442c-ab65-a9f6ab856851n%40googlegroups.com.