oh that's good too! I wound up using ActionCreateTiddlerWidget as I had 
wanted to have it copy a template tiddler and it was most obviously able to 
do so, but good to know about setfield as well. That rename bit, though, is 
also gold. need to squirrel that away! thank you!

On Monday, November 22, 2021 at 1:11:26 AM UTC Eric Shulman wrote:

> Another handy use of ActionSetFieldWidget is to "clone" a tiddler, simply 
> by setting the title field.
>
> Let's suppose you have a Tiddler named "TidA", and you want to make a 
> complete copy of it named "TidB".  You can achieve this via:
> `<$action-setfield $tiddler="TidA" title="TidB" />`
>
> While this *might* seem like it would rename TidA to TidB, what it 
> actually does is to create a *new* tiddler named TidB with all the same 
> fields and values as TidA, while leaving TidA itself unchanged.
> If you actually do want to rename TidA instead of cloning it, you would 
> use the above, followed by:
> `<$action-deletetiddler $tiddler="TidA" />`
>
> -e
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0115da3a-c374-4e01-8933-a5537b3e80a9n%40googlegroups.com.

Reply via email to