Current tiddler vs story tiddler, need clarity

Hi all

In Tiddler “A”, I have a macro that transcludes the summary field of tiddler “B”.

In B’s summary field I have a link to currentTiddler. <$link to=<<currentTiddler>>>*</$link>

[Assume I don’t have the option of just writing <$link to="B">*</$link>]

How can I force the current tiddler link to always be a link to B even when it is showing in the macro in A? I looked through the documentation but am still confused.

Use <$link to=<<thisTiddler>>>*</$link>

  • <<storyTiddler>>
    is always the title of the tiddler shown in the StoryRiver
  • <<currentTiddler>>
    is initially the tiddler shown in the StoryRiver, but can be changed by widgets such as $list and $tiddler
  • <<thisTiddler>>
    is always the title of the tiddler from which the content originates

Thus, if tiddler “A” contains:

This is in A<br>
STORYTIDDLER=<<storyTiddler>><br>
CURRENTTIDDLER=<<currentTiddler>><br>
THISTIDDLER=<<thisTiddler>><br>

{{B}}

and tiddler “B” contains:

This is in B<br>
STORYTIDDLER=<<storyTiddler>><br>
CURRENTTIDDLER=<<currentTiddler>><br>
THISTIDDLER=<<thisTiddler>><br>

Then, viewing tiddler “B” will show:

This is in B
STORYTIDDLER=B
CURRENTTIDDLER=B
THISTIDDLER=B

and viewing tiddler “A” will show:

This is in A
STORYTIDDLER=A
CURRENTTIDDLER=A
THISTIDDLER=A

This is in B
STORYTIDDLER=A
CURRENTTIDDLER=A
THISTIDDLER=B

This also applies when transcluding a field other than the text field (e.g., `{{B!!summary}})

enjoy,
-e

6 Likes

Thanks a bunch, Eric!

Thanks for the explanation, somehow I missed

Very helpful companion to currentTiddler