Excellent. Here's the code for that fix: And here's a demo: cpashow.tiddlyspot.com/#How to pass a filter count to a macro:[[How to pass a filter count to a macro]] with a link to the code you can drag into your wiki
/*\ creator: _cpa title: $:/_cpa/macros/filterCount.js type: application/javascript module-type: macro \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information about this macro Returns the count of rows returned by a filter. */ exports.name = "filterCount"; exports.params = [ { name: "filter" } ]; /* Run the macro */ exports.run = function(filter) { if(filter) { return $tw.wiki.filterTiddlers(filter).length; } else { return 0; } } })(); -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5fd8d4d7-2757-4df4-8c08-faeb347689d4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.