If you use some method to absolutely guarantee that the new title will be
unique and put it in a variable (e.g title=<<my-title-macro>>), then you
can add a second action using something like:
<$action-listops $tiddler=<<my-title-macro>> $field="tags"
$filter="[<currentTiddler>addprefix<pre>addsuffix<suf>]" />
Or you could do it completely differently, using <$action-createtiddler>
and set each of the fields yourself. You can set the type inside the widget
as well (e.g. type="text/x-htmlp" > The advantage of action-createtiddler
is that it takes care of name collisions for you. Even though using a
template tiddler sounds like the easiest approach, I find something like
action-createtiddler turns out to be the easier approach.
On Thursday, June 18, 2020 at 8:24:43 AM UTC-7, 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/d6cc785f-40c7-4776-b689-5c4a2f907586o%40googlegroups.com.