Jamie,

I haven't understood what you mean by "sort[toc-order]"

However I will try and give you some kind of answer that may or may not be 
what you want.

In the tiddler that holds the *toc-selective-expandable* macro, if you have 
a field, say call it *list-order*, and that field is used as a ListField 
<https://tiddlywiki.com/#ListField>, and it contains a list of all your 
tiddlers tagged *content* in the order you desire for them to appear - then 
the below should list all your tiddlers in the same order that you have 
them in the *list-order* field.

<div class="tc-table-of-contents">
<<toc-selective-expandable "Variables" "enlist{!!list-order}">>
</div>

Hope it works!

On Thursday, March 28, 2019 at 4:04:37 PM UTC+7, Jamie Choi wrote:
>
> It is possible to sort with a field like this:
>
> <div class="tc-table-of-contents">
> <<toc-selective-expandable "content" "sort[toc-order]">>
> </div>
>
> But is there any method to give a default value to toc-order inside the 
> sort field, e.g. to give default value of 0 to posts without the field 
> toc-order?
>

-- 
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 tiddlywiki@googlegroups.com.
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/a6ace668-7d2b-474b-9091-fdce1af4f8e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to