On Friday, August 10, 2018 at 2:49:54 PM UTC+2, bimlas wrote: > > Just found a better way: > > Edit $:/core/ui/ViewTemplate/body instead of $:/core/ui/ViewTemplate and > put the code above/bellow the transclude block. > > Sorry for writing often, but I'm so excited about TiddlyWiki! It's the > most hackable "document manager" I've ever seen (besides Vim). The syntax > is a bit weird for first but I see that it's not as bad as I thought. :) >
:) It should be possible, to add new elements to the ViewTemplate, without modifying the core tiddlers. The tiddler is built dynamically using the: $:/tags/ViewTemplate <https://tiddlywiki.com/#%24%3A%2Ftags%2FViewTemplate> tag. So if you tag any tiddler eg: myElement with this tag, it will be automatically added to the "bottom" of the tiddler. The order of a dynamically create list can be controlled with the tiddler "list-field" <https://tiddlywiki.com/#Introduction%20to%20Lists:%5B%5BIntroduction%20to%20Lists%5D%5D%20ListField%20%5B%5BOrder%20of%20Tagged%20Tiddlers%5D%5D>. Eg: If you want, that myElement is shown below the title, you can add a list-after field to myElement, containing the value: $:/core/ui/ViewTemplate/title If you want to show it below the body use the value: $:/core/ui/ViewTemplate/body instead. The existing list can be seen, if you open the $:/tags/ViewTemplate <https://tiddlywiki.com/#%24%3A%2Ftags%2FViewTemplate> tiddler. ... The advantage of using the list-before and list-after fields with myElement is, that you don't need to modify the existing core tiddlers. .. So if the core is updated, you will also get the new updates. ... If you directly modify the core tiddlers, your modifications will always win. I did add a myElement.json file, to play with, which you can download and drag & drop import to your TW. have fun! mario -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to firstname.lastname@example.org. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/07178691-72cf-478a-9ba8-e7382d1ac465%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.