Sorry to be talking to myself here, but I've arrived at 80% of what I was trying to do and thought I'd follow up.
The only remaining problem is that the listings dynamically generated by macros/plugins in the ViewTemplate don't show through when the tiddler is transcluded - if this is truly unsolvable, then I've come up with workarounds outlined below, that I can live with. However, if there is a way for identical results to be generated at save time (or load time, or with an "update" button, whatever) and then actually stored in the tiddlers so they'll "show through" when transcluded that would be much better for this use case (referenced cross/indexed tiddlers, but rarely updated) - So I'm still looking for suggestions on either strategy from the gurus.
What follows is probably obvious to those guys, but I thought a sketch of my solution so far might be useful for fellow noobs googling in the future, or perhaps stimulate suggestions for something a bit more elegant.
The end result of all this below is that for a given taggly-tiddler "index term" (=keyword), and only for those tiddler types, below a brief description/definition of the term will display a tabbed listing of all content in the TW document tagged with that term, with each tab displaying a different list, "sliced and diced" by Eric's fine
MatchTagsPlugin, as well as
ShowReferencesPlugin.
Assuming you're starting with a blank vanilla TW, install either
HideWhen or
TaggedTemplateTweak - I'll use the latter here. This means that any tiddler tagged with ".keyword" will then automagically use the below ".keywordViewTemplate" rather than the default ViewTemplate.
Here's my code for from my "vanilla testing"
<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div>
<div class='tagged' macro='tags'></div>
<div class='viewer' macro='view text wikified'></div>
<div macro='tiddler test'></div>
<div class='tagClear'></div>
<!--}}}-->
and from my modified
TWT-Treeview "Executive":
<!--{{{-->
<div class='toolbar' macro='toolbar collapseTiddler collapseOthers fullscreen closeTiddler closeOthers closeAll permalink references jump'></div><br>
</div><div class='title' macro='view title'>Master Quality - </div>
<div><span macro='unsavedChanges panel'></span></div>
<div class='viewer' macro='view text wikified'></div>
<div macro='tiddler .KeywordInclude1'></div>
<div class='tagClear'></div>
<!--}}}-->
Note the inclusion of an external tiddler "
.KeywordInclude1". (The fact that I've made it "read only" and put a text warning ahead of the title that it's a "Master" keyword record - not editable here in the child TW, maintained in a "parent glossary/index" TW - isn't relevant for this specific issue - see
here for background on that if it's of interest.)
Now that tiddler contains a tabset (very nicely formatted in "Executive" by the way):
<<tabs txtCurrentMode [[• Other Keywords ]] "" [[.K1a]] [[• Not Key Words ]] "" [[.K1b]] [[• Others Tagged ]] "" [[.K1c]] [[Inbound Links]] "" [[ShowReferences]] >>
----
It used to also contain static text along the lines of "Here are "child" tiddlers tagged with this "taggly" parent one:", but I moved this "upstream" into the static text of the tiddler content so as to provide a self-referential link to the real tiddler accessible from navigational/summary tiddlers that transclude it, since none of the code displayed by the template shows through from there. (One quick question - anyone know how to get the {{tiddler.title}} to display that way - inline in a tiddler rather than inside a macro?)
Then the tiddlers generating the linked list within the tabs:
.K1a :
<<matchTags " • [[%0]]" "\n" {{tiddler.title}} AND .keyword>>.K1b:
<<matchTags " • [[%0]]" "\n" {{story.findContainingTiddler(place).getAttribute ('tiddler');}} AND .notKeyword>>.K1c:
<<matchTags " • [[%0]]" "\n" {{tiddler.title}} AND NOT .keyword AND NOT .notKeyword>>with the fourth tab being automatically generated by ShowReferencesPlugin
Both ".keyword" and ".notKeyword" tiddlers are externally-sourced content tags, the former are the "main" ones, while the latter are synonyms, disambiguation notes etc. used for reference but not actually tagging the primary content in the child TW, which .K1c tab will then display - "all local content tagged with this index term". Note the template could easily be expanded to separate out quotations, summary vs fulltext, statements defining relations between glossary terms, etc.
This core template design is also useful in the "master index" TW, as that third tab will display contain term-specific working notes, to-do lists, journal entries etc pertaining to the indexing project itself, which won't be imported into the children content TWs (not being tagged .keyword or .notKeyword).
Two more questions - have I missed out on any other "self-weaving" aspects that might connect my crosslinked web of index terms - tags and references, any other potential network paths?
And finally, my intention is for every keyword to be "two-way tagged" - in other words, if A tags B then B must tag A - of course that's only within the set of keywords, but they are in a self-contained master TW. Can anyone suggest a way to automate this, or at least help by exposing via lists? I've played with
TagGridPluginInfo but have a hard time getting my head wrapped around a way to keep the display manageable with 900+ tagging terms. . .
And PS Eric have I told you how much I love you lately? 8-)