Is it me or the Wikify widget not concatenating?

48 views
Skip to first unread message

TonyM

unread,
Aug 22, 2018, 3:53:13 AM8/22/18
to tiddl...@googlegroups.com
Folks,

[edited] I seem to have fixed this, not need to respond. Thanks tony

Inside a Macro I want to concatenate two variables, themselves the result of macros

\define mymacro(tiddlername context)
<$set name=tiddlername value="$tiddlername$" emptyValue=<<currentTiddler>> >

<$wikify name=context text="$context$">

<$tiddler tiddler=<<tiddlername>> >



   
For the The alternatives here please see below?


</$tiddler>
</
$wikify>
</$set>
\end

Alternatives not working
<$wikify name="attribs" text="<<macroresult>>$context$" >
<$wikify name="attribs" text="<
<macroresult>><<context>>" >
<$wikify name="attribs" text="<
<macroresult>>$(context)$" >

the
<<macroresult>>
returns a list of fieldname="fieldvalue" pairs, as is also passed in the context parameter.

I am trying to add the two 
<<macroresult>><<context>>
together to set the attribs value.

I have some button actions that want to use the attribs value but I cant get it right to start with.
I only ever get the content of <<macroresult>> or nothing.

Thank 





TonyM

unread,
Aug 22, 2018, 4:01:39 AM8/22/18
to TiddlyWiki
I think I now have it working with 

<$wikify name="attribs" text='<<fieldsvalues>>$context$'>

However I needed to be in the correct tiddler for this to work correctly.

Thanks Anyway
Tony


On Wednesday, 22 August 2018 17:53:13 UTC+10, TonyM wrote:
Folks,
Reply all
Reply to author
Forward
0 new messages