Whoops! Well I just replied but it's been so long since I came back to Google Groups that I forgot to use Reply All vs. Reply to Author... hopefully that message still made it to you! (normally I only monitor https://talk.tiddlywiki.org/ these days) - sorry about that.
On Sunday, November 7, 2021 at 6:17:23 AM UTC-5 [email protected] wrote: > Hello! > > Okay, so the context for this is that I have, or will have, a database of > many, many interrelated individuals. Each of those individuals has a > 'mother' and a 'father'. I can currently get tiddlywiki to display lists of > children each individual has, based on their name showing up in the mother > or father field of another tiddler. What I can't figure out how to do is > get the 'Children' row of the table not to show when an individual has no > children. > > For other fields I can do something like this: > <$list filter="[all[current]has[secondaryeducation]]"> > <tr> > <td>''Secondary Education''</td> > <td><$link to={{!!secondaryeducation}} /></td> > </tr></$list> > > When an individual doesn't have the secondaryeducation field, the row > doesn't show up in the sidebox. > > My current set up for listing children looks like this > > <$list filter="[all[current]gender[female]]"> > <tr> > <td>''Children''</td> > <td><<list-links [field:mother{!!title}]>></td> > </tr></$list> > <$list filter="[all[current]gender[male]"> > <tr> > <td>''Children''</td> > <td><<list-links [field:father{!!title}]>></td> > </tr></$list> > <$list filter="[all[current]has[id]]"> > > If the individual is female, it looks for instances of the title of the > individuals tiddler being listed as the mother in other tiddlers. Vice > versa for males. > > I've fiddled with lots of widgets. I think the problem is that this syntax > [field:father{!!title}] doesn't play well... > > Also, if you have better alternative methods of achieving this goal, I'm > all ears! I know filling in a 'Children' field, would solve this problem, > but I want to cut manual data input to a minimum, and in principle all > biological familial relationships (siblings, aunts, grandparents...etc.) > can be expressed in mother-child, and father-child relationships. > > -- 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/49310d0a-9d55-4b7e-9286-f1a3fcb6eef8n%40googlegroups.com.

