Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2015-10-18 11:31:31

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_pagination: paginate everything

Nicolas, can you test the new version for me? This should work now:

<txp:etc_pagination pages='<txp:variable name="pages" />' pgcounter="pg" range="2" prev='<' next='>' />

Thanks.

Edit: it’s on my site, not yet on .org neither Github.

Last edited by etc (2015-10-18 11:40:41)

Offline

#146 2015-10-18 11:54:02

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: etc_pagination: paginate everything

etc wrote #295962:

Nicolas, can you test the new version for me?

Sorry it doesn’t change anything.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#147 2015-10-18 12:00:10

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_pagination: paginate everything

Have you flushed the cache? and what is smd_tags loading order?

Edit: please check “Order” on plugins tab, etc_pagination must load before smd_tags.

Last edited by etc (2015-10-18 12:01:58)

Offline

#148 2015-10-18 12:04:24

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: etc_pagination: paginate everything

etc wrote #295964:

Have you flushed the cache? and what is smd_tags loading order?

Yes.
It’s 5.

Edit: It seems that etc_pagination can’t get the right smd_tag_list url…

Last edited by NicolasGraph (2015-10-18 12:07:38)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#149 2015-10-18 12:07:48

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_pagination: paginate everything

NicolasGraph wrote #295965:

Yes.
It’s 5.

And this of etc_pagination?

Offline

#150 2015-10-18 12:15:08

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: etc_pagination: paginate everything

5 for both if it’s what you’re asking.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#151 2015-10-18 12:26:44

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_pagination: paginate everything

NicolasGraph wrote #295968:

5 for both if it’s what you’re asking.

Aha, then it’s not changed on plugins upgrade. Can you set it to, say, 3, and test again?

Offline

#152 2015-10-18 12:27:58

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: etc_pagination: paginate everything

I wrote to Jakob because he asked for stef to help him to get smd_tags and etc_pagination work together.
Maybe he found something simpler than what I’m using for now…

Edit: I sent him the new solution.

Last edited by NicolasGraph (2015-10-18 12:38:43)


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#153 2015-10-18 12:31:20

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: etc_pagination: paginate everything

etc wrote #295969:

Aha, then it’s not changed on plugins upgrade. Can you set it to, say, 3, and test again?

Let me call you Boss for today Oleg!


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#154 2015-10-18 13:15:42

etc
Developer
Registered: 2010-11-11
Posts: 5,028
Website GitHub

Re: etc_pagination: paginate everything

NicolasGraph wrote #295971:

Let me call you Boss for today Oleg!

And then claim some extras for Sunday work? :) Thanks for testing, helped me much. The story is that smd_tags rewrites $_SERVER['REQUEST_URI'], removing the /smd_tag part, so etc_pagination gets a shorten url. The new version loads before smd_tags and stores the true url before some other plugin modifies it.

Offline

#155 2015-10-18 13:42:19

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: etc_pagination: paginate everything

etc wrote #295974:

The story is that…

Thanks for the explanation, that’s what I understood when you asked me to change the load order.


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#156 2015-10-18 13:56:53

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,578
Website

Re: etc_pagination: paginate everything

NicolasGraph wrote #295970:

I wrote to Jakob … Maybe he found something simpler than what I’m using for now … Edit: I sent him the new solution.

Thank you for alerting me. Looking back over my code, it seems I sidestepped the problem by a) calculating the total pages manually (i.e. outside of etc_pagination) from the total-number-of-matched-tagged-articles / number-per-page and plugging that into the pages attribute, and b) using pgcounter="page" instead of pg.
When I get some time, I’ll check out the new version of etc_pagination.


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB