I have a legacy TW Classic installation at v.2.8.1. Is there an equivalent of the TW5 ‘count’ filter for TW Classic?
To get the number of items matched by a filter in TWClassic, you can resort to a snippet of javascript code, like this:
<script>
return store.filterTiddlers("...").length.toString();
</script>
Note that this requires installation of my TiddlyTools JavascriptPlugin:
https://tiddlytools.com/#InlineJavascriptPlugin
Note also that filters in TWClassic are extremely limited and only support the following syntax:
- match literal tiddler titles:
-
TiddlerName
or[[Tiddler Name]]
-
- match tags:
[tag[tagtext]]
- sort
-
[sort[created]]
or[sort[modified]]
-
- limit
[limit[number]]
- field
[field[fieldname,value]]
-e
This works well - thanks Eric!