On Thursday, July 23, 2020 at 4:37:44 AM UTC-7, TW Tones wrote:
>
> Personaly I believe there are better ways than tiddlers with page number 
> titles. In fact an alternate solution is available by using the pages tag.
>

The solution I provided, which uses the "Pages" tag, could just as well 
have used the title, simply by changing "tag[Pages]" to "prefix[Pages ]" in
the three places where a filter is used, like this:

<$list filter="[<currentTiddler>prefix[Pages ]]">
<div style="float:right;">
   <$vars prev={{{ [prefix[Pages ]sort[]before<currentTiddler>] }}}>
   <$vars next={{{ [prefix[Pages ]sort[]after<currentTiddler>] }}}>
The rest of the code remains unchanged since it works with the values of 
<<prev>> and <<next>>.

Also, this approach handles *any* number of pages by using 
"before<currentTiddler>" and "after<currentTiddler>"
in the filters that find the previous/next tiddler titles.  Thus, there's 
no need to calculate a page number and it works
even if there are some gaps in the sequence.

-e

>

-- 
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/7a5e56a5-9fbd-4120-9228-b38357302bf1o%40googlegroups.com.

Reply via email to