On Jul 3, 2:59 am, HansBKK <[email protected]> wrote:
> Please realize I have no clue about Javascript nor programming, but I'm
> hoping to trigger someone's "aha I know how to do that", ideally pointing to
> a plugin people have forgotten about?
<snip>
> Now I'm thinking, all I need is for something to return a global listing of
> all tags, and then filter that list using something like this snippet. Am I
> on the right track?

Given that you were able to look at the TWCore code and figure out
even bits and pieces of it, means that you are probably much closer to
writing some of your own custom javascript code than you imagine.

To add 'inline' code into your tiddler content, install this plugin:
   http://www.TiddlyTools.com/#InlineJavascriptPlugin

Then, you can write something like this in a tiddler:
--------------
<script>
var all  = store.getTags();   // get info for all tags
var tags = [];                // non-tiddler tags (to be filled)
for (var t=0; t<all.length; t++) { // loop over all tags
   var tag=all[t][0];              // get one tag
   if (!store.tiddlerExists(tag))  // skip existing tiddlers
      tags.push('[['+tag+']]');    // add link to non-tiddler tag to
list
}
return tags.join('\n'); // output tag links, one per line
</script>
--------------

enjoy,
-e

-- 
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.

Reply via email to