Yet another how to question

90 views
Skip to first unread message

David Gifford

unread,
Jun 26, 2019, 12:01:11 PM6/26/19
to TiddlyWiki
Hi all

I have a new tiddler button set up, but the only element I am not sure how to do is this: text="GRAB contents of the text field of another tiddler and paste as text in the new tiddler"

I don't want to transclude the other tiddler, but paste its contents.

Any ideas?

Dave

Mark S.

unread,
Jun 26, 2019, 12:11:09 PM6/26/19
to TiddlyWiki
This is probably simpler than what you want but technically works:

<$button>Set Contents of target tiddler  from text of Tiddler B
<$action-setfield $tiddler="target tiddler" text={{B!!text}}/>
</$button>

If "target tiddler" doesn't exist it will be made.

David Gifford

unread,
Jun 26, 2019, 12:16:58 PM6/26/19
to TiddlyWiki
Thanks Mark, but here is what I am doing:

1. Here is the new button so far. I have the title as a date and time, and other fields. So I don't think your solution would work (?).

<$button class="tc-btn-invisible">
<$action-sendmessage $message="tm-new-tiddler" title=<<now "YYYY-0MM-0DD 0hh:0mm:0ss">> text="" domain="" topic="" />
{{$:/core/images/new-button}}
</$button>

2. I have a separate list widget process for the tiddlers created by this process. Note that it renders text AS text. That is why I can't use transclusion.

<$list filter="[!domain[]sort[domain]]"><h3><$view field="domain"/></h3><$link><$view field="topic"/></$link><br><br><$view field="text" format="text" /><br></$list>

Thanks again

Mark S.

unread,
Jun 26, 2019, 2:12:11 PM6/26/19
to TiddlyWiki
Your first post said you wanted to grab the text of an existing tiddler and put it into the text of another tiddler. But I don't understand in your example what tiddler will be providing the text.

David Gifford

unread,
Jun 26, 2019, 2:15:17 PM6/26/19
to tiddl...@googlegroups.com
Hi Mark,

The example had the text part blank because I am still not sure what to put there. But the tiddler is $:/.giffmex/template/new.tiddler

Thanks,

David Gifford
Mexico team leader, Mexico City

Resonate Global Mission
Engaging People. Embracing Christ.
A Ministry of the Christian Reformed Church
resonateglobalmission.org



--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/r8H6r65-zkw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/15c78998-1916-472e-a791-33cea73f577f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark S.

unread,
Jun 26, 2019, 2:29:32 PM6/26/19
to TiddlyWiki
So, in your example, or in my example, can't you put:

text={{$:/.giffmex/template/new.tiddler!!text}} 

??
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.

David Gifford

unread,
Jun 26, 2019, 2:37:20 PM6/26/19
to TiddlyWiki
Hey, that worked great! Thanks! Because of the double curly brackets I was skeptical, because it looked like transclusion, which I had already tried. But this worked great.

TonyM

unread,
Jun 26, 2019, 6:10:46 PM6/26/19
to TiddlyWiki
David

It is transclusion. You are transcluding the content found at the tiddler and field specified in the "text reference" between the curly braces.

Regards
Tony

Reply all
Reply to author
Forward
0 new messages