Some additions... the code could be simpified a bit and possibly
corrected (note the empty space when concatenating).
var title=prompt("Please enter title", "");if(!title)return;
var tags=config.macros.twab.importTags+' '+
prompt("Please enter tags", "");
store.saveTiddler( title, title,
"<<tiddler ContactsFormTemplate>><data>{}</data>",
config.options.txtUserName, new Date(), tags );
If you want to enter both title and tags into the same promt, you
could use a separator like this...
var p=prompt("Please enter Title or Title|TagA [[Tag B]]",
"").split('|');
var title=p[0];if(!title||title=='')return;
var tags=config.macros.twab.importTags+' '+p[1];
store.saveTiddler( title, title,
"<<tiddler ContactsFormTemplate>><data>{}</data>",
config.options.txtUserName, new Date(), tags );
Good luck, Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.