I'm trying to build a button to append text to a tiddler. Thing is, I want 
the name of the tiddler to by dynamic. Stephan has the example I'm building 
on here: http://skeeve.tiddlyspot.com/ . That code is:

\define appendButton(now, add)
 <$button set="Target" setTo="$now$$add$">append</$button>
\end

<$edit-text  tiddler="$:/temp/Append"/>
<$macrocall $name="appendButton" now={{Target}} add={{$:/temp/Append}}/>

---
{{Target}}

That appends a tiddler called Target.

My attempt is almost there. I'm able to dynamically set the the tiddler I 
want to send the text to and that bit is working but it isn't appending. 
I'm trying to figure out how to dynamically set the now={{Target}} bit.

My non working attempt is here.
\define appendButton(target, now, add)
 <$button set=$target$ setTo="$now$$add$<br>">append</$button>
\end

<$wikify name="thisproj" text={{!!project}}>
<$wikify name="projnotes" text='<<thisproj>> Notes'>

{{||$:/timer}}

<$edit-text  tiddler="$:/temp/Append"/>
<$macrocall $name="appendButton" target="<<projnotes>>" now=<<projnotes>> 
add={{$:/temp/Append}}/>

Any ideas appreciated.

Thanks,
Scott

-- 
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/d80cc64e-7c72-473b-b215-d895195d3351%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to