Hi mark,
this is a typical tw5 2'gotcha'
<$set name="text2convert" value=<<textin2>> >
the macro only does basic text substitution.
You need to use this pattern
<$set name="text2convert" value={{$x$}} >
and so must put your code inside a macro
\define amacro(x)
<$set name="name_of_tiddler" value=$x$>
<$set name="text2convert" value={{$x$}} >
<$button>
<$action-setfield
$tiddler=<<convertto>>
text=<<html2tw>> />
<$action-navigate $to=<<convertto>>/>
Convert Tiddler Text
</$button>
\end
<$macrocall $name="amacro" tname={{$:/html2tw/title}}/>
all the best
BJ
On Friday, March 25, 2016 at 8:14:56 PM UTC, Mark S. wrote:
>
> Hi Jed,
>
> I've tried this in all sorts of iterations. I was hoping that wrapping a
> macro in a macro could finally force it to acknowledge the actual text in
> the dereferenced name tiddler.
>
> Your variation put this into the "converted" tiddler:
>
> *{{TitleIUsedInTheForm}}*
>
> So the literal string with brackets is getting passed rather than the
> transcluded text. It seems like it ought to be easy.
>
> Thanks for trying,
> Mark
>
> On Friday, March 25, 2016 at 12:12:38 PM UTC-7, Jed Carty wrote:
>>
>> It is probably the <$set name="text2convert" value=<<textin2>> > line
>> that does it.
>>
>> Why don't you just use one macro instead of creating a macro that just
>> calls a second macro? Make textin:
>>
>> \define textin() {{$(name_of_tiddler)$}}
>>
>> and use that as the value for text2convert instead of textin2
>>
>
--
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/dad51087-2b31-481b-a2de-2be972efb0a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.