How to transclude field from tiddler which is in a field of current tiddler

32 views
Skip to first unread message

Tristan

unread,
Nov 16, 2021, 4:53:19 PM11/16/21
to TiddlyWiki
Hey guys,

I don't know the correct term but I want to transclude a field of the tiddler that is contained in one of the fields of the current tiddler:

Tiddler1:
    title: tiddler1
    tag: Baz
    ref: tiddler2

Tiddler2:
    title: tiddler2
    name: FooBar

Tiddler3:
    title: tiddler3
    <table>
        <$list filter="[tag[Baz]">
            <tr>
                <td>
                    <$link to={{!!ref}}>
                    I want to show "FooBar" here
                    </$link>
                </td>
            </tr>
        </$list>
    </table>

Thanks,
Tristan

Mat

unread,
Nov 16, 2021, 5:01:15 PM11/16/21
to TiddlyWiki
This should work, I think:

<$transclude $tiddler={{!!ref}} $field=name />

<:-)

Tristan

unread,
Nov 17, 2021, 3:49:15 AM11/17/21
to TiddlyWiki
Thank you, it worked indeed :)
Reply all
Reply to author
Forward
0 new messages