http://novye-podarki.ru/heeg.html#!heeg#;10010;5;150;dostDrGorod;1;1740;oplNalKur;1;0;NoMon;1;0;$%D0%92%D0%BB%D0%B0%D0%B4%D0%B8%D0%BC%D0%B8%D1%80$89112564578$info@heeg.ru$2016-05-25T10:00:54.338Z_09923
new $tw.Tiddler({title:"bla",caption:"hi"})
regards
new $tw.Tiddler({title:"bla",caption:"hi"});
$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getModificationFields(), {title:"bla",caption:"hi"}));
$tw.wiki.getCreationFields()
that gives you the created timestamp
-m
Now I try to teach this macro to save some data from URL to the list field of tiddler $:/temp/mylistI try to use this hook http://tiddlywiki.com/dev/#Hook%3A%20th-saving-tiddler but get error.I use this $tw.Tiddler("$:/temp/mylist",{"list": value});
var fields = {list:"a b c", an_other_field:"test"};
var title = "test-title";
$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),fields,{title: title},$tw.wiki.getModificationFields(), {title:"this-title-wins"}));