Hi Metabele / @Jeremy,

I would have hoped that with the messages we won't need *$mangletags* 
anymore, but I guess putting the fieldmangler inside a button won't work...

Find Tag:
<span title="Select a Tag to Find">
<$select tiddler="$:/temp/find" field="text" default='(none)'>
<option value="null">(none)</option>
<$list filter="[all[tiddlers]tags[]sort[title]]">
<option value=<<currentTiddler>>><$view field="title"/></option>
</$list>
</$select>
</span>

Replace With: <$edit-text tiddler="$:/temp/add"  tag="input" type="text" 
placeholder="Add Me" />

<$button>
<$list filter="[tag{$:/temp/find}]">
<$fieldmangler tiddler=<<currentTiddler>>>
<$action-sendmessage message="tm-add-tag" param={{$:/temp/add}}/>
<$action-sendmessage message="tm-remove-tag" param={{$:/temp/add}}/>
</$fieldmangler>
</$list>
<$action-setfield $tiddler={{$:/temp/find}} title={{$:/temp/add}}/>
<$action-deletetiddler $tiddler={{$:/temp/find}}/>
<$action-sendmessage $message="tm-close-tiddler" $param={{$:/temp/find}}/>
replace
</$button>


|!search <$link to={{$:/temp/find}}><$view tiddler={{$:/temp/find}} field="
title"/></$link>|!replace <$link to={{$:/temp/add}}><$view 
tiddler={{$:/temp/add}} field="title"/></$link>|
|<<list-links [tag{$:/temp/find}]>>|<<list-links [tag{$:/temp/add}]>>|

What makes the fieldmangler necessary anyway?

Best wishes,

— tb

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bea4494e-7d83-491f-af48-d4e6ae424336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to