\define lingo-base() $:/language/TagManager/
<table class="tc-tag-manager-table">
<tbody>
<tr>
<th><<lingo Count/Heading>></th>
<th><<lingo Tag/Heading>></th>
</tr>
<$list filter="[tags[]tag[topics]!is[system]sort[title]]">
<tr>
<td style="text-align: right"><$count filter="[all[current]tagging[]]"/></td>
<td>{{||$:/core/ui/TagTemplate}}</td>
</tr>
<tr>
<td></td>
<td colspan="1">
</td>
</tr>
Hello, I'm new here, and new to the code!
I use these Tag Manager-like Tiddlers to organize my tag hierarchies. For example, this one creates a table of all my wiki's "topics" tags and shows their count next to them (on the left).Is there a way to sort the resultant table primarily by the count (most popular tag first), and secondarily by the tag title?
\define lingo-base() $:/language/TagManager/
\define sub() [tagging[]count[]]
<table class="tc-tag-manager-table">
<tr>
<th><<lingo Count/Heading>></th>
<th><<lingo Tag/Heading>></th>
<
/tr>
<$list filter="[tags[]tag[topics]!is[system]sort[title]!sortsub:integer<sub>]">
<tr>
<td style="text-align: right"><$count filter="[all[current]tagging[]]"/
></td>
<td>{{||$:/core/ui/TagTemplate}}</td>
</tr>
</$list>
</table>
(The cloud view was actually quite unusable with some of my categories containing >100 entries and their counts ranging from 1 to triple digits :-) )
I was further wondering if the subfilter could be an even stricter filter, e.g. do the count only for "books", "papers", or an intersection like "English" + "books"?
This way, such tables could show the count distribution of any tag category (e.g. "topics") within any intersection of categories.
* Of course, clicking on the tag pill would still pop-up-list all the Tiddlers with that tag, even if the subfiltered count were more restricted.
Best regards,
Teo
Thank you, that solved it!
(The cloud view was actually quite unusable with some of my categories containing >100 entries and their counts ranging from 1 to triple digits :-) )
font-size:calc(0.5em + (0.2em * ($(count)$ / 5) ) );
font-size:calc(0.5em + (0.1em * ($(count)$ / 25) ) );
I was further wondering if the subfilter could be an even stricter filter, e.g. do the count only for "books", "papers", or an intersection like "English" + "books"?
This way, such tables could show the count distribution of any tag category (e.g. "topics") within any intersection of categories.
* Of course, clicking on the tag pill would still pop-up-list all the Tiddlers with that tag, even if the subfiltered count were more restricted.
\define sub() [tagging[]tag[books]count[]]
\define sub() [tagging[]tag[papers]count[]]
\define sub() [tagging[]tag[English]tag[books]count[]]
\define sub() [tagging[]tag[English]tag[books]] [tagging[]tag[French]tag[books]] +[count[]]