For the second part, it looks like fieldmangler doesn't like being pointed 
at a non-existent tiddler, so you have to use action-setfield.

So, if you go here <http://ooktech.com/jed/ExampleWikis/InvokingActions/> 
and put this in a tiddler it should work:

<$linkInvokeActions to=Test>Hello!
<$reveal type='match' state='Test' text=''>
<$action-setfield $tiddler=Test $field=tags $value=Hi/>
</$reveal>
</$linkInvokeActions>

Those functions aren't part of the core yet, but you can grab them as a 
plugin from that site if you wish.

And you could make this a macro:

\define thisLinkIfNonexistantAddTag(tiddler tag)
<$linkInvokeActions to=$tiddler$>$tiddler$
<$reveal type='match' state='$tiddler$' text=''>
<$action-setfield $tiddler=$tiddler$ $field=tags $value="$tag$"/>
</$reveal>
</$linkInvokeActions>
\end
\end

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to