Lookup to a linked Tiddler

72 views
Skip to first unread message

myfta

unread,
Feb 7, 2020, 5:21:33 AM2/7/20
to tiddl...@googlegroups.com
I have two "sets" of Tiddlers, they are tagged as "SetA" and SetB".

Now when I am editing a Tiddler in SetA I want to have an editable field that hyperlinks to one of the other Tiddlers in SetB using, ideally, a lookup list of all the Tiddlers tagged "SetB".

So I create a field in all the Tiddlers in  SetA and SetB called "Associate".

Simply, I can manually link the Tiddlers with;

Associate: [["a Tiddler in SetB"]]

And a lookup list:

<$select tiddler='$:/generated-list'>
<$list filter='[tag[SetB]]'>
<option><$view field='title'/></option>
</$list>
</$select>
<$tiddler tiddler={{$:/generated-list}}>
<$transclude mode='block'/>
</$tiddler>

Ideally, I want to wrap the whole thing into an editable field:

<$edit-text field="Associate"/>

I just don't know how to bring it all together.

Is there a better way of doing this?

A Gloom

unread,
Feb 10, 2020, 2:32:47 AM2/10/20
to TiddlyWiki
myfta

Now when I am editing a Tiddler in SetA I want to have an editable field that hyperlinks to one of the other Tiddlers in SetB using, ideally, a lookup list of all the Tiddlers tagged "SetB".

The select widget you want to function in the edit (mode) window of a tiddler?

If so I believe such is done with a template tagged

$:/tags/EditTemplate -- I've haven't work with the editor templates do I can't advise any further.


The select widget doesn't work-- only its code shows in a tiddler edit window but it does work in the edit preview window-- which may be an alternate method

myfta

unread,
Feb 10, 2020, 4:56:23 AM2/10/20
to TiddlyWiki
Thanks. I'll see if I can get it to work.
Reply all
Reply to author
Forward
0 new messages