On Friday, September 27, 2013 2:27:00 PM UTC-7, steve wrote:
> Hello
>
> I'm needing a way to compute the number of tiddlers that have a given tag
> and I'm presently using fet as follows:
>
> {{{
> <<forEachTiddler
> where
> 'tiddler.tags.containsAny("$1".readBracketedList())'
> write
> '""'
> end 'count'
> none '""'
> >>
> }}}
>
> Although this approach works it seems to have slowed down my wiki. Is
> there a better (ie faster) way to get the number of tiddlers for a given
> tag?
>
using my InlineJavascriptPlugin, you can write:
<script> return store.getTaggedTiddlers("tagvalue").length; </script>
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.