Hi Jed, Thanks for the explanation.. it makes sense.
James. On Sunday, 29 March 2015 15:41:00 UTC+11, Jed Carty wrote: > > I couldn't make it work using one line. If I understand correctly this is > consistent with how action-setfield works. > The action-setfield widget uses the wiki.setText function to overwrite the > old tiddler by creating a new tiddler with the same name as the old > tiddler, just with the new field appended to the tiddler data. When you set > the value of an existing field the new value takes the place of the the old > one in the created tiddler, so when you change the title field the new > tiddler is created, but since the title of the new tiddler is different, > the old tiddler isn't affected. > When you set multiple fields using a single set widget this process is > repeated once for each field in sequence, but each time it is starting out > with the tiddler given by the $tiddler input. So you can do this in one > line IF you have the order of the inputs such that the title field is given > last, AND you want the changes to affect the original template tiddler as > well, because the fields are added to the template tiddler one by one, and > then a new tiddler is created. If you have 'title=newtitle' first than none > of the changes after that are applied to the new tiddler, but they are > applied to the template. Unless you want to change the template this > probably isn't a good way to do it. > -- 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 http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.