Seems this work to clone a tiddler batchwise
\define clone(newTid,Template)
<$action-createtiddler $basetitle=$newTid$ $savetitle="temp" />
<$list filter="[<__Template__>fields[]] -title" variable=fname >
<$set name="fval" tiddler=<<__Template__>> field=<<fname>> >
<$action-setfield $tiddler={{temp}} $field=<<fname>> $value=<<fval>> />
</$set>
</$list>
\end
Example
<$button>Clone me
<$list filter="[range[1,5]addprefix[a00]]">
<$macrocall $name=clone newTid=<<currentTiddler>> Template=testTemplate />
</$list>
</$button>
where testTemplate is a sample tiddler with many fileds, tags, text has
been cloned.
--Mohammad
On Tuesday, February 19, 2019 at 12:19:21 PM UTC+3:30, Mohammad wrote:
>
> How is it possible to clone a tiddler without navigation to it?
>
>
> 1. use the tm-new-tiddler
> - issue: open the tiddler in the story river, not good for bulk
> cloning
> 2. use the action action-createtiddler
> - issue: has to iterate over all fields and copy one by one to the
> new tiddler, performance issue not simple
>
> What do you propose? Any better solution?
>
> Ref: TonyM:
> https://groups.google.com/d/msg/tiddlywiki/WsiLG2xTViM/DO5NdudQBQAJ
>
>
> --Mohammad
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/965154e9-f74e-4aed-a822-35542096751a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.