Hi

I'm entirely new to Tiddly and am trying to achieve the following. 

I have Tiddlers that contain custom fields that indicate relationships to 
other Tiddlers (much like the title field) such as  "related_to" and 
"associated_with". The value of these fields are titles of other Tiddlers 
the relationship points to. Tiddler 1 for example has a relates_to field 
with [[Tiddler 2]] [[Tiddler 3]] [[Tiddler 4]] as value. 

What I'd like to do is to create a table in the text of Tiddler 1 with a 
row for each of the relationship fields (replacing the underscore with a 
space) with in a cell an ordered list of all the Tiddler titles as links 
like the following example:


If possible I'd like to have another table in the text of e.g. Tiddler 4 
that does this the other way around since Tiddler 1 is the target


In case a table is not feasible, an unordered list like the following one 
is just as well:


   - Tiddler 1 relates to Tiddler 2
   - Tiddler 1 relates to Tiddler 3
   - Tiddler 1 relates to Tiddler 4
   - Tiddler 1 associated with Tiddler 5
   - Tiddler 1 associated with Tiddler 6


Or something like

Tiddler 1 relates to Tiddler 2, Tiddler 4, Tiddler 4
Tiddler 1 associated with Tiddler 5, Tiddler 6

I tried the following code from the forum:

<$list filter="[!is[system]]">

<$set name="myVariable" filter="[search:relates_to<currentTiddler>]" 
value={{!!title}} emptyValue="">
<$link><$text text=<<myVariable>>/></$link>
</$set>

</$list>

But in case a non system Tiddler doesn't have a relates_to field and I 
adapt the 3rd line to {{!!title}} relates to <$link><$text 
text=<<myVariable>>/></$link> then I get unwanted rows.

Hope this explanation is a bit clear.

Thank you in advance,
Geoffrey

-- 
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/127fffce-1b02-4b94-9fdc-7d2f3de9c75b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to