Linking throuh custom fields

5 views
Skip to first unread message

Jakob Graulund Jørgensen

unread,
Oct 1, 2009, 6:33:39 PM10/1/09
to TiddlyWiki
Hi

Trying something new and cant make it work.

Lets say ive create 3 tiddlers with the tittles tiddlerTitleA
tiddlerTitleB tiddlerTitleC, if i now create a fourth tiddler overView
i can link to my 3 tiddlers by writing their names in overView. But
what if i what to link to my 3 tiddlers through a custom field ive
created e.g. the field 'serial number' ?

in overView i want to be able to click on a link called 001 ei the
serial number for tiddlerTitleA and then have the corresponding
tiddler open. Is this in any way possible?

im sorry if this dosent make any sense, but it is late and this just
popped into my mind while i was trying to sleep.

Eric Shulman

unread,
Oct 1, 2009, 8:09:18 PM10/1/09
to TiddlyWiki
> what if i what to link to my 3 tiddlers through a custom field ive
> created e.g. the field 'serial number' ?
>
> in overView i want to be able to click on a link called 001 ei the
> serial number for tiddlerTitleA and then have the corresponding
> tiddler open. Is this in any way possible?

Create a tiddler called [[SerialLink]], containing:
----------
/%
!out
[[$1|$2]]
!end
%/<<tiddler FakeLink##out with:
{{store.getValue('$1','serialnumber')}} [[$1]]>>
----------

Then, use it like this:
<<tiddler SerialLink with: TiddlerTitleA>>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Eric Shulman

unread,
Oct 2, 2009, 12:10:37 AM10/2/09
to TiddlyWiki
correction:
%/<<tiddler FakeLink##out with:
should be:
%/<<tiddler SerialLink##out with:

-e
Eric Shulman
Reply all
Reply to author
Forward
0 new messages