trying to create a tiddler C that opens tiddler A because tiddler B contains the text "A"

50 views
Skip to first unread message

this name

unread,
May 31, 2017, 1:28:45 PM5/31/17
to TiddlyWiki
(trying to create a tiddler C that "transcludes" tiddler A because tiddler B contains the text "A") may be a better technical explanation.
tiddler B only contains the text "A".
anything that works when B has the tag "A" or a field containing the text "A" would be equally great
going round in circles on this one  (tiddler C just contains the text "A")

eg

\define test(name:"B")
<$list filter="[[B]]">
<$transclude tiddler=<<currentTiddler>>/>
</
$list>
\end
<<test "B" >>

Eric Shulman

unread,
May 31, 2017, 2:02:38 PM5/31/17
to TiddlyWiki
On Wednesday, May 31, 2017 at 10:28:45 AM UTC-7, this name wrote:
(trying to create a tiddler C that "transcludes" tiddler A because tiddler B contains the text "A") may be a better technical explanation.
tiddler B only contains the text "A".

Hopefully I parsed your question correctly.  If so, create three tiddlers, where

A contains:
this is content from tiddler A

B contains:
A

and C contains:
<$transclude tiddler={{B}}/> 

It is this last bit that makes it work: the {{B}} syntax fetches the text content from B and uses it as the tiddler parameter value for the transclusion.

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas" (tm)
InsideTiddlyWiki: The Missing Manuals

this name

unread,
May 31, 2017, 2:34:10 PM5/31/17
to TiddlyWiki
its working
brilliant!
Reply all
Reply to author
Forward
0 new messages