TagManager like functionality for user fields

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>

It is achievable, you only need to use a (correctly written) filter expression with the filter operator that can work for your need. If you need the list and the count of the tiddlers in this list, you could use:

  • list and count widget with the same filter
  • Or use a list widget with its counter

In the first case, something like the following filter expression works:
[field:component<currentTiddler>]

currentTiddler is the default variable that list widget creates to use it in the content between list widget tags.

for create your list of links (in your table) you can use something like this:

<$list filter="[field:component<currentTiddler>]">
<$link/><br>
</$list>

For what it’s worth, there’s a project by Danielo that allows you to use a field for tags:

http://braintest.tiddlyspot.com/#Make%20any%20field%20behave%20like%20tags

But I don’t see that is has a place to display tags (but that would be easy enough to write).

And an older project by Jed which let’s you use a separate fields for tags:

https://ooktech.com/jed/ExampleWikis/MultipleTagFields/

May be off-topic, but, TiddlyCommander plugin does what you want, managing by files, for example exporting tiddlers, bulk changing field content, etc.

The newer version of the multiple tag fields plugin is called GenTags and is here GenTags Plugin — reference and development