Fadel,
As a little side note/brain dump, since what you are doing here is
effectively altering the order of items tagging a given tiddler you can use
the show as tag pill.
{{TableOfContents||$:/core/ui/TagTemplate}}
or use the macro
<<tag TableOfContents>>
The Popup list of items tagging TableOfContents is thus sort-able using
drag and drop, try it. I always install the Open All
plugin $:/plugins/ajh/openall (I am trying to locate the Source) which adds
the ability to open all items so tagged from the Tag pill popup.
Note: all tiddlers tagged with the current tiddler can also be found in
Info button tagging, however by default this is not drag-able (as yet).
Once you have a populated list in the relevant tiddler eg TableOfContents
in the "list" field you could perhaps provide alternate ways to sort the
items in this list with a click. Alpha, date field etc.. I am yet to
explore this in detail.
If you use the macrocall method to invoke the tag macro you can make this
use the current tiddler
<$macrocall $name="tag" tag=<<currentTiddler>>/>
Thus this can be placed in a tiddler tagged $:/tags/ViewTemplate to appear
in all tiddlers.
Alternatively I have just placed <$macrocall $name="tag"
tag=<<currentTiddler>>/> in the core tiddler $:/
core/ui/ViewTemplate/subtitle
NB: This will over ride the shadow tiddler.
Wrapping it in the following, it will only show if the current tiddler tags
at least one tiddler.
<$list filter="[is[current]tagging[]limit[1]]" variable=null>
<$macrocall $name="tag" tag=<<currentTiddler>>/>
</$list>
I hope this gives you some thing to play with.
Regards
Tony
On Monday, April 23, 2018 at 2:32:03 AM UTC+10, Fadel M wrote:
>
> Hi,
>
> From what I understand, the default sort for the table of contents is by
> the *created* field. The *list* field overrides the sort by putting the
> listed tiddler titles on top in listed order.
>
> What I'd like to achieve is to sort the contents by title, but keep the
> ability of the *list* field to prioritize some of the tiddlers. I'm not
> sure how to do this, since I'm not very familiar with the inner workings.
>
> The way I imagine it is by populating the *list *field as below
> list: Tiddler1 Tiddler2 Tiddler3 sort[title] Tiddler200 Tiddler300
>
> But of course, this doesn't work. Could anyone point me in the right
> direction?
>
--
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 [email protected].
To post to this group, send email to [email protected].
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/b5ef13fe-2805-4bd1-91e0-14190379e217%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.