Thanks Eric, I really must stop trying to make the world sustainable and spend some time learning Javascript.
Great that works with an additional ) after condition - ("project")) <- here <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> Best wishes, TonyM On Friday, 6 July 2012 19:35:16 UTC+10, Eric Shulman wrote: > > > > On Jul 5, 10:51 pm, TonyM <anthony.mus...@gmail.com> 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 view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/-k7W4sTToNUJ. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.