\import [title<currentTiddler>]
<$list filter="[all[current]search:description[People]]">
<div class="tc-tiddler-body" style="border: none;">
<$tidgraph start=<<currentTiddler>> mode="tags[]sort[sex]reverse[]" maxdepth="2" nocollapse />
<$list filter="[all[current]has:field[birth]] [all[current]has:field[death]]"><table class="highlight1"> <caption style="text-align: left; font-weight: bold; caption-side: top;">Birth / Death:</caption> <tr> <td>Birth</td> <td><$macrocall $name="date-str" date={{!!birth}}/></td> <td><<birthplace>></td> </tr> <tr> <td>Death</td> <td><$macrocall $name="date-str" date={{!!death}}/></td> <td><<deathplace>></td> </tr></table></$list>
<$list filter="[all[current]]" variable="Parent">
<$list filter="[all[current]tagging[]search:description[People]limit[1]]" variable=null>
<div class="list-tree"> Children of <<currentTiddler>>: <ol> <$list filter="[title<currentTiddler>tagging[]sortan[birth]tags[]!title<Parent>]"> <li>with: <$link><$view field='caption'><$view field='title'/></$view></$link> <$list filter="[title<currentTiddler>tagging[]limit[1]has[parents-marriage]]"> -> married: <$macrocall $name="date-str" date={{!!parents-marriage}}/> </$list> <ol> <$list filter="[title<currentTiddler>tagging[]sortan[birth]]"> <li><$link><$view field='caption'><$view field='title'/></$view></$link> -> born: <$macrocall $name="date-str" date={{!!birth}}/></li> </$list> </ol> </li> </$list> </ol></div>
</$list>
</$list>
<$list filter="[all[current]backlinks[]!search:description[People]!is[missing]limit[1]]" variable=null>
<<table-dynamic filter:"[title<currentTiddler>backlinks[]!search:description[People]]" fields:"tbl-expand record-date description title" sortOp:sortan stateTiddler:"recordsearch" class:"highlight1" editButton:no caption:"''Mentioned or connected with the following records:''">>
</$list>
</div>
</$list>
I have used it before and it just never occurred to me to use it in this aspect. Thanks for the reminder. I will look into that tomorrow. What I did was a great learning experience for me but kin filter will likely work better.
Thanks
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/ckbmFxV4gRk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c8fdd6bd-972a-46d3-bcd8-0cbd3f429e21o%40googlegroups.com.
Thanks Tony. I really do appreciate your insight. I will be the first to admit that I have a lot to learn.I actually started this little project using a separate field for mother and father, but I switched to tags because it was easier to make it work with Tidgraph. I couldn’t quite figure out how to make it use only those two fields and not the others (birth, death, etc.) I did make it work with a parents field with the mother and father separated by a “;” bit I really didn’t like that for obvious reasons. Tidgraph worked well with the two tags because I could specify mode=“tags[]” and all was well since they were the only tags I intended to use. Using fields[] instead would have listed all fields and stopped there. Tidgraph is the easiest way to generate a pedigree chart.Once I got that, then I went to work on the “children of” list. Since I already went down the tag path, I stuck with it. Generating a descendant list was easy with the toc macros, but they couldn’t include the spouses so I rolled my own. I will not claim it is the best approach. Just easiest at the time and it served my purpose. I wasn’t looking to replace my genealogy program; just provide a quick snapshot for reference.Having said all of that, I’m definitely open to ideas and look forward to seeing your ideas and TT’s as well.Now a question. If I were to go back to mother and father fields, how could I get similar looking results for both pedigree and children? That’s where I got stuck in the first place.Damon
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f3112f86-582c-4989-8d04-f8443040752co%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f3112f86-582c-4989-8d04-f8443040752co%40googlegroups.com.
\define each-other-level()
<ol>
<$list filter="[title<currentTiddler>kin:tags:to:1[]sortan[birth]!title<currentTiddler>]">
<li>
<$link><$view field='caption'><$view field='title'/></$view></$link> -> born: <$macrocall $name="date-str" date={{!!birth}}/>
<ol>
<$list filter="[title<currentTiddler>tagging[]sortan[birth]tags[]!title<currentTiddler>]">
<li>
with: <$link><$view field='caption'><$view field='title'/></$view></$link>
<$list filter="[title<currentTiddler>tagging[]limit[1]has[parents-marriage]]">
-> married: <$macrocall $name="date-str" date={{!!parents-marriage}}/>
<
/$list>
<<each-other-level>>
</li>
</$list>
</ol>
</li>
</$list>
</ol>
\end
\define descendants()
<<each-other-level>>
\end
\define each-other-level()
<ol>
<$list filter="[title<currentTiddler>tagging[]sortan[birth]tags[]!title<currentTiddler>]">
<li>
with: <$link><$view field='caption'><$view field='title'/></$view></$link>
<$list filter="[title<currentTiddler>tagging[]limit[1]has[parents-marriage]]">
-> married: <$macrocall $name="date-str" date={{!!parents-marriage}}/>
<
/$list>
<ol>
<$list filter="[title<currentTiddler>kin:tags:to:1[]sortan[birth]!title<currentTiddler>]">
<li>
<$link><$view field='caption'><$view field='title'/
></$view></$link> -> born: <$macrocall $name="date-str" date={{!!birth}}/>
<<each-other-level>>
</li>
</$list>
</ol>
</li>
</$list>
</ol>
\end
\define descendants()
<<each-other-level>>
\end
\define each-other-level()
<$list filter="[all[current]]" variable="Parent">
<ol>
<$list filter="[title<currentTiddler>tagging[]sortan[birth]tags[]!title<currentTiddler>]">
<li>
with: <$link><$view field='caption'><$view field='title'/></$view></$link>
<$list filter="[title<currentTiddler>tagging[]limit[1]has[parents-marriage]]">
-> married: <$macrocall $name="date-str" date={{!!parents-marriage}}/>
<
/$list>
<ol>
<$list filter="[title<currentTiddler>kin:tags:to:1[]sortan[birth]!title<currentTiddler>]
-[!kin:tags:to<Parent>]">
<li>
<$link><$view field='caption'><$view field='title'/
></$view></$link> -> born: <$macrocall $name="date-str" date={{!!birth}}/>
<<each-other-level>>
</li>
</$list>
</ol>
</li>
</$list>
</ol>
</$list>
\end
\define descendants()
''Descendants of <$view field='caption'><$view field='title'/></$view>''
<<each-other-level>>
\end