To add to Mark S's reply, as I discovered recently in another thread this 
might be what you need:

<$action-listops $tiddler="New Info ???" $field="tags" 
$subfilter="-[[code]] -[[experimental]]" />

Another thing that I discovered is that sometimes actions fire in an 
unpredictable order but if you have this right after the tm-new-tiddler 
action and not in a different $list widget.

However, the bigger issue that you might experience is that if there is a 
name conflict, a new tiddler will be created with a different name than 
specified. You might use this action-listops on the template instead to 
remove the tags before cloning it and then put them back like

<$action-listops $tiddler="template\NewInfo" $field="tags" 
$subfilter="-[[code]] -[[experimental]]" />
 ... do some cloning of "template\NewInfo"...
<$action-listops $tiddler="template\NewInfo" $field="tags" 
$subfilter="[[code]] [[experimental]]" />

Your current $action-sendmessage doesn't handle currentTiddlers with spaces 
in that name though (makes multiple tags of a word each). Not sure how to 
fix that if that is an issue.

/Mike
On Thursday, June 18, 2020 at 12:24:43 PM UTC-3, Ankit Mittal wrote:
>
> Hi,
>
> I am trying to create a tiddler using transclusion of a template tiddler 
> with all its fields using the following inside a button. 
>
> <$action-sendmessage $message="tm-new-tiddler" text={{template\NewInfo}} 
> title="New Info ???" $param="template\NewInfo" tags={{{ [<currentTiddler>
> addprefix<pre>addsuffix<suf>] }}} />
>
> However to keep template tiddler "template\NewInfo" easily accessible I 
> have two tags on it "code" and "experimental" and so when I click the 
> button I get the tag "code" and "experimental" on the new tiddler along 
> with the tag I do want which is the title of the tiddler in which this 
> button is. 
>
> I need to use the $param="template\NewInfo" because I want the 
> application type to be inherited from the template which is "text/x-htmlp" 
> as I want to be able to edit the info from WYSWIG table that the CKEditor 
> plugin allows.
>
> Is there any way I can remove the two tags at the time when the new 
> tiddler s created on click of the button?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e8475b47-5660-4a2a-80ab-9b57b2e29ba1o%40googlegroups.com.

Reply via email to