Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
RFC: default pagination bar
I’m trying to simplify the default behaviour of <txp:pages /> tag, aimed to construct pagination bars. It is highly customizable, but rather verbose. So
- what should be the “default” navigation bar structure if the number of pages is very large (first/last, prev/next, gaps, …)?
- which attributes would help to construct such a bar?
- whatever else?
Thanks.
Offline
Re: RFC: default pagination bar
Yeah. Currently, it’s a bit complex. What do you propose? Invoke certain attributes like break and breakby? Sure, for a large navigation bar, indicators (first/last, prev/next) are necessary. (I noticed you recently introduce offset as URLs parameters)
Last edited by Pat64 (2023-12-08 06:54:26)
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Offline
Re: RFC: default pagination bar
first and last are expected (but facultative). Then, next and prev too (but needed). Seems we need a class attribute for the current (active) page.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: RFC: default pagination bar
Yep, whence my questions. What would be a minimal html markup allowing users to style the bar? We can set rel for next/prev links, but rel="first/last/current" is deprecated. Could we set data-rel instead of class, for example?
Offline