New tiddler button question

63 views
Skip to first unread message

David Gifford

unread,
May 2, 2021, 2:57:17 PM5/2/21
to TiddlyWiki
Hi everyone

Last question for today, really, I promise. But this is one I have always wanted to ask, I just never realized it until now.

Say I have a tiddler [[Current source]], and its text is a link: [[TiddlyWiki for beginners]]

How could I configure a new tiddler button so that it 

a) grabs the text of Current source, and
b) inserts it as the text of the field "csource" in the new tiddler that is created?

That way the new tiddler then has csource field that contains: [[TiddlyWiki for beginners]].

Thanks in advance. I am going to document your solutions at https://giffmex.org/gifts/documenting.tw.html once I get this the way I want it. Blessings.

Charlie Veniot

unread,
May 2, 2021, 3:31:32 PM5/2/21
to TiddlyWiki
G'day David and happy Sunday!

Does this do the trick?

<$button>
<$action-sendmessage $message="tm-new-tiddler" csource={{{ [[Current Source]get[text]] }}}/>
New Tiddler Button
</$button>

David Gifford

unread,
May 2, 2021, 4:50:23 PM5/2/21
to TiddlyWiki
That does indeed! Thanks Charlie. Youknow, for being the relatively new guy around here, you sure are pumping out helpful stuff!

Charlie Veniot

unread,
May 2, 2021, 6:00:32 PM5/2/21
to TiddlyWiki
Rock'n roll !

Although a yellow belt and still have loads to learn, TiddlyWiki fits my way of thinking something silly.  I'm like a kid at the carnival, and am having way loads of fun.
Reply all
Reply to author
Forward
0 new messages