On Saturday, February 2, 2019 at 12:10:34 PM UTC-8, @TiddlyTweeter wrote:
>
> I simply don't understand how to get the plain string "that" (via user 
> input) established & working so it can replace "THIS" in the following...
>
> \define that() ??? How?
>
> <$button>
> <$action-sendmessage $message="tm-new-tiddler" 
> $param="$:/long/address/to/tiddler/THIS" tags="searcher" caption="THIS"  
> text={{$:/some/tiddler}}/>
> Click me!
> </$button>
>
>
This should do what you want:
<$edit-text tag="input" tiddler="$:/temp/getname" default="" />
<$button> Click me!
   <$wikify name="target" 
text="$:/long/address/to/tiddler/{{$:/temp/getname}}">
      <$action-sendmessage $message="tm-new-tiddler" $param=<<target>>
         tags="searcher" 
caption={{$:/temp/getname}} text={{$:/some/tiddler}}/>
   </$wikify>
</$button>

1) an $edit-text widget gets the user input and puts it in a temporary 
tiddler "$:/temp/getname"
2) the $wikify widget is used to combine static text with the value from 
the temporary tiddler
3) the value of the resulting "target" variable is used as the $param for 
the new tiddler title
4) the value from the temporary tiddler is also used as the caption text 
for the new tiddler

Q.E.D

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

 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
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/5e1d2269-c322-484a-a5ff-8a45f9bf4e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to