Thanks @pmario for you thoughts,
Could you please expand on this a little more, I am not following
In my proposal one need only search for the tag name, and when it appears as a filter or as a fieldname you have found all its working. Or edit the tiddler on which you observe this behaviour.
I don’t recall this phase, if I recall we needed to revert to span and div somehow in Classic view templates. We have gone well beyond this now.
With the current implementation of view templates and the standard tag $:/tags/ViewTemplate as one example it “rules in” standard content. The only way to build exceptions such as don’t show the tags, or perhaps some other view template component , we have to include the conditional within the view template item. That is fine and the way we have been doing it for a long time. So I may have a footer or TOC tiddler and I give it the $:/tags/ViewTemplate tag and it is rendered, all fine because within it is a conditional display.
The problem comes if you want to “suppress an existing core component” as delivered by the $:/tags/ViewTemplate my example would be to hide the tags display, or the body when leveraging an alternative view.
- Examples may be a printable tiddler, a “webpage” or master tiddler
Now I do know how the cascades work, if you follow that thread and look at using an alternate default view cascade or story tiddler cascade you quickly find you need to clone and edit or create quite a number of tiddlers. It gets complex quickly when all you want to do is suppress an existing view template element one a specific tiddler.
This is my proposal, and one I think could be valuable to permit exception handling, it is immediately visible on editing a tiddler that this applies to. It sits idle and invisible unless used.
- I would challenge you to find an easier way to allow such exception handling.
Of course I am open to an alternate naming standard, rather than a field of the same name as the tag, but I think this somewhat self documenting. for example we could use delist-$:/tags/ViewTemplate or except-$:/tags/ViewTemplate containing the list of exceptions.
These are possible use cases;
$:/tags/ViewTemplate
$:/tags/ControlPanel/Info
$:/tags/EditTemplate
$:/tags/EditorToolbar
$:/tags/SideBar research this and more etc…
$:/tags/ViewTemplate/Subtitle
$:/tags/ViewToolbar
In closing although I think it would fill what I perceive as a gap in the core I am happy to use this as needed but I am forced to modify the core tiddlers, or build numerous cascades, in the spirit of hacking I would prefer it a documented feature.
- It also provides a coding pattern for others to use.