Hi Jen,
I have removed whatever twab thingy was in the code before and tested
the following...
<script label="New Tiddler">
var allwaysTag="SomeTag";
var p=prompt("Enter Title|TagA [[Tag B]]","").split('|');
var title=p[0];if(!title||title=='')return;
var tags=(allwaysTag+' '+p[1]).readBracketedList();
store.saveTiddler(
title,
title,
"<<tiddler ContactsFormTemplate>><data>{}</data>",
config.options.txtUserName,
new Date(),
tags);
story.displayTiddler(null,title);
</script>
Since I don't know what it was good for anyways... I have removed
"config.macros.twab.importTags" and replaced it with a variable called
allwaysTag which you could define to your liking. Unlike before, the
tags are now converted into an array via bracketedList(). Maybe that's
what previously caused problems.
Assuming that you have InlineJavascriptPlugin installed this should
work for you. Please note, that - if the lines are too long - google
may introduce arbitrary linebreaks which you would have to undo.
Also, if you wanted to insert Text from a template, you can replace...
"<<tiddler ContactsFormTemplate>><data>{}</data>"
with...
store.getTiddlerText("MyTemplateTiddler##OrItsSection"),
Cheers, 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.