Display original Tiddler name even when Editing

30 views
Skip to first unread message

S. S.

unread,
Feb 14, 2019, 12:45:25 PM2/14/19
to TiddlyWiki

For those who missed this very elegant solution in yesterday's post: [tw5]Macro interactions

Below are methods of Displaying/Using the original Tiddler name even when Editing the tiddler - by using Filtered Transclusion and the new ~ empty list prefix and the <<__ ... __>> parameter-as-variable


If SomeTiddler has a state tiddler titled: $:/state/SomeTiddler : with some value in any field (the example below uses the text field)
Then while editing SomeTiddler - the macro call still displays the correct state.

\define find-state(field)
<$view tiddler={{{ [all[current]get[draft.of]] ~[all[current]] +[addprefix[$:/state/]] }}} field=<<__field__>>/>
\end

{{{ [all[current]get[draft.of]] ~[all[current]]  }}}
<p /
>
<$view tiddler={{{ [all[current]get[draft.of]] ~[all[current]] }}} field=title/>
<p />
<$text text={{{ [all[current]get[draft.of]] ~[all[current]] }}}/>
<p />
<<find-state text>>


Hopefully in the coming week I can post an example of a way I imagine this would be useful for someone editing a tiddler to update it, while still wanting to see in its preview things that are dependent on the original title name.

Regards


Reply all
Reply to author
Forward
0 new messages