You need another macro to concatenate the name and field from which you 
want to retrieve the new tiddler name. And you need the wikify widget to 
turn that transclusion into a value. Like this:

\define editedname() {{$(statetiddler)$!!newtitle}}
\define maketid()
<$button>
<$action-sendmessage $message="tm-new-tiddler" title="$(tidlernewtitle)$" 
tags="OneTag [[Another Tag]]" text=<<now "Today is DDth, MMM YYYY">>/>
New Tiddler
</$button>
\end

<$set name="statetiddler" value=<<qualify 'new-tiddler'>>>
<$edit-text tiddler=<<statetiddler>> field='newtitle' placeholder="Title" 
tag="input" default=""/>

<$wikify name=tidlernewtitle text=<<editedname>> >
<<maketid>>
</$wikify>

</$set>

It must have been possible to do this before the Wikify widget, but it's 
hard to imagine how.

Good luck,
Mark




On Thursday, August 24, 2017 at 7:34:23 AM UTC-7, Niels Bjerre wrote:
>
> Thank You
> Yes - but ..... Why does this not work: Where state titdler is generated 
> with "qualify 'new-tiddler'" to make it multiuser safe
>
> \define maketid()
> <$button>
> <$action-sendmessage $message="tm-new-tiddler" title="$(tidlernewtitle)$" 
> tags="OneTag [[Another Tag]]" text=<<now "Today is DDth, MMM YYYY">>/>
> New Tiddler
> </$button>
> \end
>
>
> <$set name="statetiddler" value=<<qualify 'new-tiddler'>>>
> <$edit-text tiddler=<<statetiddler>> field='newtitle' placeholder="Title" 
> tag="input" default=""/>
>
>
> <$vars tidlernewtitle={{stateTidler!!newtitle}}>
> <<maketid>>
> </$vars>
> </$set>
>
>
>
>
>
>
>
>
> Den torsdag den 24. august 2017 kl. 15.55.50 UTC+2 skrev Mark S.:
>>
>> Without seeing your work, it's hard to know what's going on. This for 
>> instance, works:
>>
>> \define maketid()
>> <$button>
>> <$action-sendmessage $message="tm-new-tiddler" title="$(newdescription)$" 
>> tags="OneTag [[Another Tag]]" text=<<now "Today is DDth, MMM YYYY">>/>
>> New Tiddler
>> </$button>
>> \end
>>
>> <$vars newdescription={{stateTidler!!description}}>
>> <<maketid>>
>> </$vars>
>>
>> Good luck,
>> Mark
>>
>> On Thursday, August 24, 2017 at 5:48:54 AM UTC-7, Niels Bjerre wrote:
>>>
>>> I have a variable that render fine. E.g.:
>>> <<*newdescription*>>    render as "This is the new description" 
>>>
>>> The newdescription is from a stateTidler:  
>>> *{{stateTidler!!description}}*
>>>
>>> If I use the variable in a macro that creates a new tiddler (e.g. 
>>> $action-sendmessage)
>>>
>>> ==> the variable (<<*newdescription*>>) is shown as "
>>> *{{stateTidler!!description}}*" in the new tiddlers field.
>>>
>>> I believe I have searched for help everywhere and tried everything!? 
>>>
>>> Thanks in advance
>>> Niels
>>>
>>>

-- 
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/3cadbf5f-a191-4ec8-8a35-88d4a9dfb600%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to