On Thursday, August 3, 2017 at 10:43:51 AM UTC-7, Vayu Asura wrote:
>
> ...
>
next[] and previous[] operators... require hard-coded list field to work
> properly
> ...
> If there is a more reasonable way to do it esp without hard-coded lists,
> I'm very open to suggestions.
>
before[] and after[] filters work like previous[] and next[] but use the
current filter result instead of a hard-coded list.
Perhaps something like this will fit your needs:
<$list variable="parent" filter="[all[current]tags[]limit[1]]">
<$list filter="[title<parent>tagging[]before<currentTiddler>]">
prev: <$link><<toc-caption>></$link>
</$list>
<$list filter="[title<parent>tagging[]after<currentTiddler>]">
next: <$link><<toc-caption>></$link>
</$list>
</$list>
Notes:
* the outer <$list> assumes that the first tag on the current tiddler is
the "parent" (a common usage for the <<toc>> macro)
* the inner <$list> uses the tagging[] filter to get the siblings from the
parent, followed by the before[] or after[] filter to find the
previous/next sibling of the current tiddler
let me know how it goes...
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas" (tm)
InsideTiddlyWiki: The Missing Manuals
--
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/1415aa16-d8f3-4cc6-a31d-daaf4da13ecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.