Check this out, I played with the code a little more and almost got it
working. Here's what I have.
<$list filter="[tag[B]sort[title]]">
<$list filter="[tag[B]sort[huge]]">
<$link to={{!!title}}>
<$link to={{!!Bat}}>
<$view field="title"/>
</$link>
<$view field="huge"/>
</$link>
</$list>
The problem now is that the list repeats until it fills the entire wiki.
Yep, gets to Bat, Huge then starts over at the first link and keeps going.
I can't figure out how to make it not do that, the code is the same as the
rest of my toc entries with the exception of the additional list filter,
link to, and view field. Below is the code for 'A' in my toc.
<$list filter="[tag[A]sort[title]]">
<$link to={{!!title}}>
<$view field="title"/>
</$link>
</$list>
On Friday, 13 March 2020 12:30:23 UTC-3, Mark S. wrote:
>
> Attached technique using a nickname field.
> Wikitext is too convoluted. Javascript would have been much, much easier.
> Fetch tiddlers. Unpack the list field. Rebuild it as a pseudo title field.
> Wikify the result. Sort that. Fetch the original name by nick name.
> Recreate link. Argh.
>
> On Friday, March 13, 2020 at 2:24:11 AM UTC-7, PWL wrote:
>>
>> Hey,
>>
>> So I tried adding a field and inserting this code.... didn't work. Tried
>> a couple of different variations got some interesting results, like every
>> other link being Bat, huge or Bat Bat, huge. Any other ideas?
>>
>> On Wednesday, 11 March 2020 08:13:00 UTC-3, Mat wrote:
>>>
>>> You seem to ask two totally different questions, judging from your image:
>>>
>>> 1) How do I get these table headers, that are not tiddlers but some
>>> field in a tiddler, into an alphabetical list
>>> 2) How do I alphabetically sort a list based on "pretty links".
>>>
>>> ...but, unless I misunderstand you, the answer may still be the same for
>>> both: I'm guessing you're using some field to define what word/s should be
>>> shown in the list.
>>>
>>> <$list filter="[tag[B]sort[nickname]]">
>>>
>>> <$link>
>>> <$view field="nickname"/>
>>> </$link>
>>>
>>> </$list>
>>>
>>> Yes, this assumes that you have a nickname field (...how else would you
>>> get "Bat, Huge" into the list? You've defined it after the list in your
>>> example.)
>>>
>>> Note that the $linkwidget uses the currentTiddler as default for its
>>> "to=" argument so no need to type it out. (In fact, if it weren't for the
>>> $viewwidget you can write <$link/> to get a clickable link to the current
>>> tiddler.
>>>
>>> <:-)
>>>
>>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/54e4339a-5f1a-4b0e-b8fe-213a72862043%40googlegroups.com.