How to make pagination of $list 1...10...20 ?

249 views
Skip to first unread message

Siniy-Kit

unread,
Sep 10, 2018, 4:09:01 AM9/10/18
to TiddlyWiki
Hi! I am looking for pagination macro for my Tiddlywiki online store  
I have a very long list of tiddlers, and I want to separate them by pages.

barro...@gmail.com

unread,
Sep 10, 2018, 5:28:33 AM9/10/18
to TiddlyWiki
hello,

You want to break/separate the list results into sections/pagination in a tiddler or into separate tiddlers?  The pagination, would that be browser page size?  So instead of scrolling down, you would page down with the "Page Down" key?  

sini-Kit

unread,
Sep 10, 2018, 7:31:11 AM9/10/18
to TiddlyWiki
No. I don't want to separate this list in-to individual tiddlers. I want only good view of long $list  (300+ items) 
something like this 



понедельник, 10 сентября 2018 г., 12:28:33 UTC+3 пользователь barro...@gmail.com написал:

Tidd...@gmx.de

unread,
Sep 10, 2018, 8:48:27 AM9/10/18
to tiddl...@googlegroups.com
 
Hi,
 
my idea would be to use $action-listops to remove those tiddlers from the list that you don't want to show up per page. So on page 1, move the marker to position 11, remove all later tiddlers including the marker (+[allbefore[marker]]). On page two, first move it to pos. 11, remove all before it _excluding_ the marker, move it ahead ten positions, remove all tiddlers after including the marker. Call these actions from the buttons that take the viewer to the next page.
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/a221c78d-94b6-4ea0-91c7-575adc18a154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sini-Kit

unread,
Sep 10, 2018, 10:20:49 AM9/10/18
to TiddlyWiki
it's nice idea. The result will be <<previous 10...next 10 items>> but I want to see buttons with numbers . If my $list have 52 items macros must generate list of 6 buttons 0-10 | 10-20 | 20-30 | 30-40 | 40-50 | 50-60 and this buttons must change current list view.

понедельник, 10 сентября 2018 г., 15:48:27 UTC+3 пользователь Tidd...@gmx.de написал:

TonyM

unread,
Sep 10, 2018, 8:51:07 PM9/10/18
to TiddlyWiki
Sini,

I have done something similar and will locate some more details for you.

I used a count of the total items

Used a calc or formula to get the number of pages and some nested filters with limit[n]

You could also wikify the list of tiddlers into a macro and use it multiple times with some of the listops operators.

I just had another idea and will check it.

Tony

Reply all
Reply to author
Forward
0 new messages