Thank you, more to poke around in :-)
One thing that is unclear to me can I have many tiddlers with the '$:/tags/ViewTemplate' tag or only one??? If there are several in which order are the rules applied? Cheers /Joe On Saturday, 15 December 2018 14:38:00 UTC+1, PMario wrote: > > On Sunday, December 9, 2018 at 2:12:06 PM UTC+1, joearms wrote: > > In particular, how is the interaction with 'magically named tiddlers' >> managed. >> > > We call them templates: (list is sorted "simple" to complex) > > - ViewTemplate > - EditTemplate > - PageTemplate > > You may guess it. ViewTemplate creates a single tiddler UI. EditTemplate > creates the tiddler edit-UI. PageTemplate creates the whole page. > > The basic element is the <$list> widget. The tag used to "collect" the > view-template elements is $:/tags/ViewTemplate > > Open $:/AdvancedSearch <https://tiddlywiki.com/#%24%3A%2FAdvancedSearch>, > select the "*Shadows*-tab" and search for: viewtemplate > > you should get something like this (list is shortened): > > $:/core/ui/ViewTemplate > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate> > $:/core/ui/ViewTemplate/body > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fbody> > $:/core/ui/ViewTemplate/classic > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fclassic> > $:/core/ui/ViewTemplate/import > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fimport> > $:/core/ui/ViewTemplate/plugin > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fplugin> > $:/core/ui/ViewTemplate/subtitle > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Fsubtitle> > $:/core/ui/ViewTemplate/tags > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Ftags> > $:/core/ui/ViewTemplate/title > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Ftitle> > $:/core/ui/ViewTemplate/unfold > <https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FViewTemplate%2Funfold> > $:/tags/ViewTemplate > <https://tiddlywiki.com/#%24%3A%2Ftags%2FViewTemplate> > > If you open the ViewTemplate in edit mode you'll see some variable > definitions and the most important part is: > > <$list > filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" > variable="listItem"><$transclude tiddler=<<listItem>>/></$list> > > which basically means: > > - create a list of all shadows and normal tiddlers > - that are tagged with *$:/tags/ViewTemplate* > - *exclude *every tiddler, that has a draft.of field > - store the name of the tiddler into a variable named: listItem > > - transclude the tiddler in the listItem .... which "calls" the > different ViewTemplate elements. > > So if you would want to add your own content to every tiddler it should be > done like this: > > - create a new tiddler eg: myFooter > - tag it: $:/tags/ViewTemplate > - add this text: > > <hr> > My new footer > > - Every tiddler will have this footer now > > If you dig into the ViewTemplate and understand it, the others basically > work the same way. > > If you want a new header, you'll have to have a look at the > $:/tags/ViewTemplate > <https://tiddlywiki.com/#%24%3A%2Ftags%2FViewTemplate> *list *field. > > have fun! > 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/1e55267e-903c-403d-9e49-a91bc2c300f4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
