Mario, As you say the view template sets all the elements tagged with $:/tags/ViewTemplate from title to subtitle, buttons etc...
There are cases when we want to alter one of these only, such as the body, there are other times we want to add or remove one or more items, often conditionally/programmatically. When altering only the body we do not want the standard body to display so we want to replace it, on other occasions we may want to add something but hide-body conditionally/programaticaly. I think we need a little more flexibility here. - Another view template case is in a tabs internal navigation as an example, we may want to hide only the subtitle and control buttons to view tiddlers within tiddlers. - Also I see value in displaying alternate story's inside other tiddlers (with alternate viewtemplates), then choosing to make it the current story, eg a project story. - It seems to me we may need to enhance the way view and Edit templates are nominated, via both field or variable in addition to tags. - Perhaps we could use different templates for read-only view update and edit with a global or local tiddler override settings. I code this myself but core support would be smart and very few bytes would be needed. It would simply provide a mechanism. Regards Tony On Tuesday, May 26, 2020 at 7:12:28 PM UTC+10, PMario wrote: > > Hi, > > That's an interesting approach. ... I did a very short 2 minute test. ... > So I'm not really sure how everything works. > > ----------- Just some thoughts > > At the moment the TW ViewTemplate and EditTamplates are "stackable" and > changeable, without modifying the core tiddlers. > > That means, If I want to create a new element, that is part of the > existing UI, I only need to tag a tiddler $:/tags/ViewTempate and it will > be added at the end of the list. > > If I want it to be on a different position I need to add the field named: > list-before or list-after. > > IMO this type of functionality needs to stay. It needs to be possible, to > use whatever is active and only apply the "differences" to the elements I > want to change. > > --------- > > > At the moment ViewTemplate/title also contains the tiddler-toolbar. I > think this is wrong. It should be at least 2 independent elements. > > So if we change basic the core UI elements, we should make it even more > flexible. > > -mario > > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/5f7df252-ebf1-4fb8-bcb1-7c39bbff765a%40googlegroups.com.
