Order of template tiddlers tagged with $:/tags/ViewTemplate

101 views
Skip to first unread message

Hubert

unread,
Apr 2, 2021, 5:57:06 AM4/2/21
to TiddlyWiki
Hi,

Minimum use case:

Let's say I have a tiddler named "apple" with some lorem ipsum fluff in its text field and with the tag "fruit".

I also have a tiddler, let's name it, "viewer" tagged with $:/tags/ViewTemplate and the following content:

<$list filter="[all[current]tag[fruit]]">
This is a fruit
</$list>

When I open the tiddler named "apple" I will see:

Lorem ipsum

This is a fruit

My question is -- how can I decide what should come first: the text field of the "apple" tiddler (as defined by the core viewtemplates) or the text in my own viewtemplate ("viewer")? What determines the order? If I decided I want to see "This is a fruit" before or after "Lorem ipsum" how could I achieve this?

Apologies if this is not clear and thanks in advance for suggestions.

Regards,
-Hubert

Mohammad Rahmani

unread,
Apr 2, 2021, 6:57:47 AM4/2/21
to tiddl...@googlegroups.com
The simplest is to click on the tag pill for $:/tags/ViewTemplate and reorder the templates
The best practice is to use list-after / list-before  in your user template!

Best wishes
Mohammad


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/174f27ad-69b9-4d41-bcdd-4226bc8361ccn%40googlegroups.com.

Hubert

unread,
Apr 2, 2021, 3:48:49 PM4/2/21
to TiddlyWiki
Thank you Mohammad! It worked.

I've reordered the templates by clicking on the tag pill. I see the new order is now reflected in the list field of the tiddler $:/tags/ViewTemplate

However, I need to do some more "testing" and re-reading of the documentation to understand list-before and list-after better.

Regards,
-Hubert
Reply all
Reply to author
Forward
0 new messages