How to make pagination macro 1....2...3...4 for very long lists of tiddlers?

76 views
Skip to first unread message

Siniy-Kit

unread,
Apr 22, 2020, 9:53:53 AM4/22/20
to TiddlyWiki
Hi! Long ago I have written this question https://groups.google.com/d/msg/TiddlyWiki/zeJDRTfa3tg/pWnSy8AfBgAJ   but still not able to find solution.
I make static html, so this pagination must work on separate html pages and have its own URL . I have no ideas how to solve this problem.

Mark S.

unread,
Apr 22, 2020, 10:57:49 AM4/22/20
to TiddlyWiki
Since they need to be exportable, I think I would make an action
button that would generate the report as temporary tiddlers. Then
the tiddlers could be exported as static tiddlers. Afterwards, the
temporary tiddlers could be deleted.

Hmm ... can you depend on relative addressing between generated
tiddlers? That is, will they all be in the same directory so you don't
have to provide the full path in a link?

Hmm 2 ... the names for the generated tiddlers would have to be carefully
assigned, so that the output names of the exported tiddlers are
predictable. When the node render comes across "illegal" characters
in tiddler titles, it does it's own renaming. AFAIK, that naming algorithm
isn't available to the user. At least I couldn't find it.

I think with the new math and comparison filters, and wikify to html,
all the basic tools are there now to do this. But it might take a bit
of work. Probably a couple days work.

Hopefully someone already has a similar solution.

Siniy-Kit

unread,
Apr 23, 2020, 1:57:26 AM4/23/20
to TiddlyWiki
Hi, Mark. I think this macro is necessary to run on Tiddlywiki start. 
1. find all title tiddlers with tag   $:/TOC
2. find lists longer than 20 items 

<$list filter="[tag[$:/TOC]]">
in {{!!title}} <$count filter="[is[current]tagging[]tag[$:/Note]!tag[$:/hide]]"/> items <br>
</$list>

3. split this list by 20 items an add tags. to first 20 items we add tag {{!!title}}_pagination_20, next 20 we add tag  {{!!title}}_pagination_40 and so on

4. create new temp tiddlers with titles  {{!!title}}_pagination_20,  {{!!title}}_pagination_40,  {{!!title}}_pagination_60
5. put list of links to this tiddler to every tag[$:/TOC] 

it is very long way...

среда, 22 апреля 2020 г., 17:57:49 UTC+3 пользователь Mark S. написал:

TonyM

unread,
Apr 23, 2020, 2:04:56 AM4/23/20
to TiddlyWiki
Siniy-kit

There are pagination methods for html tables. Perhaps you could instead use html tables with pagination to generate you tiddler lists and format so the table looks like a list. The pagination will then be hard coded in each tiddler and no need to link to other tiddlers, just select the page as part of the table.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages