If you have Eric Shulman's InlineJavascriptPlugin installed, then you
should be able to put this into a tiddler called TaggedTagTemplate :

<script>
var tag = "$1" ;
var tagtag = "$2" ;
var tags = store.getTiddler(tag).tags ;
var out = "" ;
for(var i=0;i<tags.length;i++) {
var tid = store.getTiddler(tags[i]) ;
if(tid && tid.isTagged(tagtag)) out += tags[i] + " " ;
}
return out ;
</script>

and then add the transclusion tiddler like this to your line:

 [x($1|done)] [[$1]] depends on: <<tiddler [[TagTaggedTemplate]] with:
"FirstAction" "ACTION">>

(Everything above should be on one line -- google may wrap it)

Where "FirstAction" is your main tiddler, and "ACTION" is the Tag each
tag is tagged with.

HTH
Mark

On Dec 10, 7:04 pm, Saverio <[email protected]> wrote:
> I am trying to develop my own simplified GTD solution.  I am trying to
> write a script that will display an action item with a checkbox and a
> filtered tag list.  So for example,
>
> [ ] "action" depends on: ["action2", "action3", ...]
>
> where "action1" is the title of the tiddler that contains information
> about the action, and that is tagged with (among other things) the
> names of the other actions which must be completed first ("action1",
> "action2", etc.).  The checkbox will toggle the existence of a "done"
> tag. And all actions are tagged with "action".
>
> So far, I can only get as far as:
>
> [ ] "action" depends on:
>
> using the inline (wiki) syntax of Eric Shulman's CheckBoxPlugin
> (http://www.tiddlytools.com/#CheckboxPluginInfo) as follows in a
> tiddler named DisplayAction:
>
> [x($1|done)] [[$1]] depends on:
>
> I believe I can use Eric Shulman's InlineJavascriptPlugin 
> (http://www.tiddlytools.com/#InlineJavascriptPluginInfo) to do the last piece,
> but I need the javascript code that will display a list of the current
> tiddler's tags that are themselves tagged with the tag "action".  Can
> anyone help?

--

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