Listing all tiddler tags in the tiddler's text

8 views
Skip to first unread message

Michael.Tarnowski

unread,
Dec 21, 2009, 9:18:37 PM12/21/09
to TiddlyWiki
Hi TW community,
I want to show all tiddler tags in the tiddler's text. To do this, I
found a post (http://groups.google.com/group/tiddlywiki/browse_thread/
thread/5c3a76e3d176b59e/81b04a4579efa5b2?lnk=gst&q=tiddler.tags#)

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

Eric Shulman

unread,
Dec 22, 2009, 12:04:42 AM12/22/09
to TiddlyWiki
> <<tiddler [[ListTags]] with {{tiddler.title}}>>
> Any ideas?

you need a colon after "with", like this:
<<tiddler [[ListTags]] with: {{tiddler.title}}>>

-e

Michael.Tarnowski

unread,
Dec 23, 2009, 12:09:52 AM12/23/09
to TiddlyWiki
Eric, I do thank you very much - the solution was soooo easy
Reply all
Reply to author
Forward
0 new messages