On Wednesday, August 12, 2020 at 5:48:17 PM UTC-7, amreus wrote: > > I have a little macro that lists the siblings of a person tiddler. > Simplified, it looks like so: > \define siblings() > ''Siblings'' > <$list filter="[has[famc]field:famc{!!famc}]"> > <br><$link>{{!!caption}}</$link> > </$list> > \end > This lists all tiddlers that have a matching `famc` field, including the > current tiddler. > How can I make it not link to the current tiddler? > I want to list and link to the siblings, but only list the current tiddler > with no link. >
Try this: \define siblings() ''Siblings'' <$vars here=<<currentTiddler>>> <$list filter="[has[famc]field:famc{!!famc}]"> <br> <$list filter="[<currentTiddler>match<here>]"> {{!!caption}} </$list> <$list filter="[<currentTiddler>!match<here>]"> <$link>{{!!caption}}</ $link> </$list> </$list> </$vars> \end -- 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/711f3ec4-22f4-4c39-b16c-ca10b3da6fc0o%40googlegroups.com.