I am attempting to replicate the $:/TagManager functionality but for user defined fields.
I was able to copy and hack the $:/TagManager code, which probably is totally messed up, to get a table of user tags but it is missing the other two key pieces which TagManger has.
- Accurate count of tiddlers containing that field
- A clickable list of all tiddlers containing that field
I am a TW newbie and am not sure if this is even achievable. But my gut feeling is that I am probably breaking new ground here. Has anyone accomplished doing anything like this before?
Here is the code I have managed to get working so far.
EDIT: The $:/mine/FieldTemplate is just a copy of the system tiddler
<table class="tc-tag-manager-table">
<tbody>
<tr>
<th class="tc-tag-manager-tag">Component</th>
<th>Count</th>
</tr>
<$list filter="[each[component]get[component]!is[system]sort[]]">
<tr>
<td>{{||$:/mine/FieldTemplate}}</td>
<td><$count filter="[all[current|tagging[]]]"/></td>
</tr>
</$list>
</tbody>
</table>