Double Transclusion?

86 views
Skip to first unread message

Alexander Eckert

unread,
May 28, 2016, 5:06:19 PM5/28/16
to TiddlyWiki
Thanks to Jed Carty my first question was answered realy quick. And I could continue my work.

Now I got a new problem: I'm trying to double transclude text. Let me explain:

First Tiddler got field "a" with value "x"
Second Tiddler got field "b" with value "First Tiddler"

Now I want to get the value x in the second tiddler. I tried

{{!!b!!a}}

but it does not work.

Afterwards I tried

<$set name="test" value={{!!b}}>
{{<
<test>>!!a}}
</$set>

But this doesn't work either. Is there a way to double transclude with field values, where a field value contains the name of the transcluded Tiddler?

Kind regards,

Alex

BJ

unread,
May 28, 2016, 5:24:49 PM5/28/16
to TiddlyWiki
HI Alex,
one way is

<$tiddler tiddler={{!!b}}>
{{!!a}}
</$tiddler>

all the best
BJ

Eric Shulman

unread,
May 28, 2016, 5:29:09 PM5/28/16
to TiddlyWiki
On Saturday, May 28, 2016 at 2:06:19 PM UTC-7, Alexander Eckert wrote:
First Tiddler got field "a" with value "x"
Second Tiddler got field "b" with value "First Tiddler"
Now I want to get the value x in the second tiddler
... 
Is there a way to double transclude with field values, where a field value contains the name of the transcluded Tiddler?

There are several ways to do this, with varying complexity.  One easy way is to wrap the transclusion inside a <$tiddler> widget, like this:

from inside SecondTiddler:
<$tiddler tiddler={{!!b}}>{{!!a}}></$tiddler>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
InsideTiddlyWiki: The Missing Manuals

Alexander Eckert

unread,
May 28, 2016, 6:05:08 PM5/28/16
to TiddlyWiki
Wow, what a fast answer

Thank you BJ & Eric, it works =)

Kind regards

Alex

Ákos Szederjei

unread,
May 28, 2016, 6:42:14 PM5/28/16
to tiddl...@googlegroups.com
Yep, that is the usual service of the folks around here! :)

Ákos
Reply all
Reply to author
Forward
0 new messages