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/bdf8d441-58f5-4c23-a41a-bdabb87dc979%40googlegroups.com.
b-is-for-bat.json
Description: application/json

