I am looking at changing the cascade display order so that a table, displaying values from a tiddler’s fields, is displayed before the body text.
I have tried a viewtemplate but this displays the text before the table.
I have read the docs and GROK on changing the order of viewtemplates but remain confused. I am sure it has something to do with list-before/list-after but I find the documentation confusing.
Can someone point me into the right direction.
bobj
on your item listed with the view template tag use a list-before field containing the item that displays the text field, the view template body tiddler.
thanks @TW_Tones . I found an example and copied that and it works. Somethignelse to add to the arsenal…
bobj
hello, I’m looking for the same thing, may I ask for that example? not sure what to do with list-before/list-after to be honest. thanks in advance!
@Thanasis_Sklapanis
create the view template for your tiddlers including the tag $:/tags/ViewTemplate
create a field on this view template tiddler named list-before and with the value $:/core/ui/ViewTemplate/body
Save your view template tiddler and display one of your tiddlers. It should display your content BEFORE the rest of the template body.
Have a peek into the Shadows tiddlers in the More tab. Scroll down to $:/core/ui/ViewTemplate/ and you will see a set of templates which you can use to alter the display order of your own tiddlers using the list-before or list-after method
good luck
bobj
got it, thank you very much!
You can also adjust the order of the view templates using just drag-and-drop interactions.
First, tag your template tiddler with $:/tags/ViewTemplate. When you view that tiddler, it will display a “tag pill” for the $:/tags/ViewTemplate tag. Click on the tag pill to see a popup list containing of all tiddlers that are tagged with $:/tags/ViewTemplate. To change the order of these tiddlers, simply drag-and-drop them within that popup list.
Note that this interaction updates the list field within the $:/tags/ViewTemplate tiddler itself, and supersedes the list-before and list-after fields from the individual template tiddlers.
enjoy,
-e