Unable to transclude

67 views
Skip to first unread message

Cully

unread,
Jan 24, 2017, 9:32:25 PM1/24/17
to TiddlyWiki
I have defined macro named ThisContactNotes with:

\define ThisContactNotes() [[$(currentTiddler)$ Notes]]

If I use the macro to link <<ThisContactNotes>> it generates the correct link and I can click through to the Tiddler.

If I attempt to transclude the Tiddler nothing is returned.

I have tried to use:

{{ThisContactNotes}}

and

{{||ThisContactNotes}}

Any help would be great!

Cully

unread,
Jan 24, 2017, 9:56:59 PM1/24/17
to TiddlyWiki
In trying to work through this I dumped the variables <<dumpvariables>> and found that ThisContactNotes has [[ ]] around the value.

Perhaps it helps...

Álvaro

unread,
Jan 24, 2017, 10:55:21 PM1/24/17
to TiddlyWiki
What is it "Notes"? Tiddler? Created field? ??

If it is a tiddler, you are building a filter with the title that is result of join the title of current tiddler and tiddler with title "Note". For example, if "New tiddler" is title of the current tiddler, you obtain link to tiddler with the title "New tiddler Note". When you do click in link, TW opens a missing tiddler if there wasn't any tiddler with this title.

http://tiddlywiki.com/#Introduction%20to%20filter%20notation

Sorry for my english.

Álvaro

Jed Carty

unread,
Jan 25, 2017, 3:05:32 AM1/25/17
to TiddlyWiki
The behaviour you describe is how tiddlywiki is supposed to work. It has to do with how rendering works.

So to transclude the tiddler you may need to use the transclude widget like 

<$transclude tiddler=<<ThisContactNotes>>/> 

or you may need to use a list widget like this

<$list filter=<<ThisContactNotes>>><$transclude/></$list>

Cully

unread,
Jan 25, 2017, 9:27:14 AM1/25/17
to TiddlyWiki
Thank Jed!!! The list widget worked to tranclude the text. The only issue was that the formatting was wrong as all of the text from the tiddler was on a single line without any <CR>.  I added mode="block" and it worked great!

<$list filter=<<ThisContactNotes>>><$transclude mode="block"/></$list>

Thanks for the help!
Reply all
Reply to author
Forward
0 new messages