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