In analogy to the there proposed transclusion mechanism (using Eric
Shulman's InlineJavascriptPlugin), I defined a tiddler called ListTags
containing
<script>
var tag = "$1" ;
var tags = store.getTiddler(tag).tags ;
var out = "" ;
for(var i=0;i<tags.length;i++) {out += tags[i] + ", " ;}
return out ;
</script>
This I called from another tiddler "xyz" by
<<tiddler [[ListTags]] with {{tiddler.title}}>>
After saving the tiddler ListTags I got the error msg "TypeError:
store.getTiddler(tag) is null" and the same when saving tiddler xyz.
I tried the call <<tiddler [[ListTags]] with tiddler.title>> as well.
Any ideas?
Thx for your help in advance,
Michael
you need a colon after "with", like this:
<<tiddler [[ListTags]] with: {{tiddler.title}}>>
-e