Thanks, Mark. Worked perfectly! On Friday, July 27, 2018 at 10:36:43 AM UTC-4, Mark S. wrote: > > So, you want to do the two things at the same time? This seems to work: > > \define myactions() > <$fieldmangler> > <$action-sendmessage $message="tm-add-tag" $param="OldTopics"/> > <$action-sendmessage $message="tm-remove-tag" $param="Topics"></$button> > </$fieldmangler> > \end > \define makeOld() > Add <<tag OldTopics>> Remove <<tag Topics>> > <$button actions=<<myactions>>>{{$:/core/images/erase}} > </$button> > \end > > <<makeOld>> > > I changed the two buttons to an erase button since there is now one button > to do two things. But of course you can decorate it however you want. The > actions were moved to a macro and activated through the "actions" attribute > of the button, which is supposed to be the new way of doing things. > > HTH > > -- Mark > > On Friday, July 27, 2018 at 7:04:53 AM UTC-7, Steven Schneider wrote: >> >> Hello Old Friends: >> >> I'm trying to write a macro that would add & remove tags from a tiddler >> with a single button. I've got it working with two buttons, but am quite >> sure I'm missing something very simple. Any suggestions would be much >> appreciated. Thanks, //steve. >> >> \define makeOld() >> <$fieldmangler> >> Add <<tag OldTopics>> >> <$button message="tm-add-tag" >> param="OldTopics">{{$:/core/images/new-button}}</$button> >> <br> >> Remove <<tag Topics>> >> <$button message="tm-remove-tag" >> param="Topics">{{$:/core/images/delete-button}}</$button> >> </$fieldmangler> >> \end >> >> <<makeOld>> >> >> >>
-- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/32c1fd32-c53c-493f-b965-cfc04c5a6ab2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.