On Jul 5, 10:51 pm, TonyM <[email protected]> wrote:
> Hi everyone,
>
> I was just wondering if anyone had found a way to list a subset of the
> current tiddlers tags using a search ?
>
> I have some tiddlers that are tagged with a range of tags to define its
> type or status including one or more projects for which this tiddler is
> relevant.
>
> I would like a method to search all tags in the current tiddler then test
> if the tiddlers these tags represent meet some condition such as being
> tagged "project". I want a list (ideally on a single line) of the tags in
> the current tiddler that are project tags.
>
> In this case each tag is also a tiddler with its own tags.
>
> This would be very useful in a number of ways including providing toggle
> tags and other features for selected tags.

Try this (untested) inline script:

<script>
var out=[];
for (var i=0; i<tiddler.tags.length; i++) {
   var tid=store.getTiddler(tiddler.tags[i]);
   if (tid && tid.isTagged("project")
      out.push("[["+tiddler.tags[i]+"]]");
}
return out.join(" ");
</script>

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

WAS THIS ANSWER HELPFUL?  IF SO, PLEASE MAKE A DONATION
   http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

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