<$list filter="[tag[a]] [tag[b]] +[limit[1]]" emptyMessage="tid3">
<<currentTiddler>>
</$list><$list filter="[tag[a]] [tag[b]] [[tid3]] +[limit[1]]"><<currentTiddler>>
</$list>The word is perhaps overiding rather than overloading.
There are a number way to do this that I use for this. I will share some.
Tony
--
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/b9e4d7a7-e8d2-43b1-9e56-60ddf30b263c%40googlegroups.com.
Hi Mohammad,For your use case, here is a typical use of the ~ operator (aka "else") on filter runs :<$list variable=template filter="[tag[a]] ~[tag[b]] ~[[tid3]]">
<$transclude mode=block tiddler=<<template>> />
</$list>Best regards,Xavier.
On Wed, Dec 4, 2019 at 8:02 AM Mohammad <mohamma...@gmail.com> wrote:
Yes, seems your solution also works!--I am trying to use this for tiddler overloading like the one is found for shadow tiddlers!So, tid2 is required to overload if tid1 exist! If none exist TW should use a default tiddler called tid3 here!One use case:
- Display a tiddler using template tid2 (the one tagged with b)
- If user supplied its own template use user template here is tid1 (the one tagged with a)
- If not supplied tid1 nor tid2 use a default template called tid3
--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 tiddl...@googlegroups.com.