Questions about "Simple Alphanumeric Pagination"

Thanks.
The filter should be flexible - according my selection:
Choosing ‘A’ → number of tiddlers starting with ‘A’
Choosing ‘M’ → number of tiddlers starting with ‘M’

That’s true, I am on mobile and have not access to the code! Have a look and see what variable stores your selection, filter but it! like: prefix<myVariable>

No hurry - sorry, I wasn’t successful.

(Only counting of all tiddlers according my selection (“Text Tiddler” / “all Tiddler” / “System”) is working.)

Thanks

@Mohammad
May I ask you to help me to figure out, which variable has stored my selection ?
Thanks

I forgot about this and the code! But I went through the whole thread, seems you want to count the number of tiddlers by A, B, …M, etc.

That means you need to store the A, B, …M, … letters in variable say myVariable, for example from the $list generates buttons, and the use

<$count filter="[subfilter<__scope__>prefix<myVariable>]" />

If you were not successful, let me know!

@Mohammad

I’ve attached the code - Pagination.json (3.9 KB)

Thanks, Stefan

1 Like

Would you please test this

Put the below line just before <!-- generate outputs -->

<$count filter="[subfilter<__scope__>filter<listfilter>]" />

Note: You have defined your vars using $let widget, so the scope of these variables is anywhere between <$let> …</$let> not outside the opening and closing of $let

@Mohammad - outsite of <$let> …</$let> the value was always 0… - that was my issue…

Thanks a lot for your support!
Stefan