Hi Tobias
I've seen your xlist before, but didn't make the connection. This is
exactly what I needed!
The table I wished to have is entirely constructed for all outgoing
relationships and all incoming relationships. For those interested, I used
the following approach
\define getRelatesToRelationship() [list[$(currentTiddler)$!!relates_to]]
\define getAssociatedWithRelationship()
[list[$(currentTiddler)$!!associated_with]]
<$list filter="[all[current]has[relates_to]]
[all[current]has[associated_with]]">
<table>
<thead>
<tr>
<td>Source</td>
<td>Relationship</td>
<td>Target</td>
</tr>
</thead>
<$list filter="[all[current]has[relates_to]]">
<tr>
<td><$link>{{!!title}}</$link></td>
<td>relates to</td>
<td>
<ul>
<$list filter=<<getRelatesToRelationship>>>
<li><$link><$view field="title"/></$link></li>
</$list>
</ul>
</td>
</tr>
</$list>
<$list filter="[all[current]has[associated_with]]">
<tr>
<td><$link>{{!!title}}</$link></td>
<td>is associated with</td>
<td>
<ul>
<$list filter=<<getAssociatedWithRelationship>>>
<li><$link><$view field="title"/></$link></li>
</$list>
</ul>
</td>
</tr>
</$list>
</table>
</$list>
<$list filter="[all[current]listed[relates_to]limit[1]]
[all[current]listed[associated_with]limit[1]]" variable="none">
<table>
<thead>
<tr>
<td>Source</td>
<td>Relationship</td>
<td>Target</td>
</tr>
</thead>
<$list filter="[all[current]listed[relates_to]limit[1]]"
variable="none">
<tr>
<td><$link>{{!!title}}</$link></td>
<td>is related from</td>
<td>
<ul>
<$list filter="[all[current]listed[related_to]sort[title]]">
<li><$link><$view field="title"/></$link></li>
</$list>
</ul>
</td>
</tr>
</$list>
<$list filter="[all[current]listed[associated_with]limit[1]]"
variable="none">
<tr>
<td><$link>{{!!title}}</$link></td>
<td>is associated_from from</td>
<td>
<ul>
<$list filter="[all[current]listed[is associated
with]sort[title]]">
<li><$link><$view field="title"/></$link></li>
</$list>
</ul>
</td>
</tr>
</$list>
</table>
</$list>
If you have any tips for getting started, do let me know, because this
helped a lot 😊
Best regards,
Geoffrey
On Friday, 10 February 2017 22:33:14 UTC+1, Tobias Beer wrote:
>
> Hi G,
>
> This answer should be interesting to you.
>
> https://groups.google.com/d/msg/tiddlywiki/9Cr9AKYGgVA/PgBKrKiXDwAJ
>
> Also, if you are already looking at Tiddler 4, there is no need to mention
> the title of Tiddler 4 in the table x times.
>
> All you need is a definition list of your relations and the related
> titles, e.g.:
>
> *relates to*
> - Foo
> - Bar
> - Baz
>
> Best wishes,
>
> Tobias.
>
--
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 post to this group, send email to [email protected].
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/9bec9e44-4178-4865-b8f3-afd35cd1a50b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.