Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#145 2015-10-18 11:31:31
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
Offline
#147 2015-10-18 12:00:10
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
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)
Offline
#149 2015-10-18 12:07:48
Offline
#150 2015-10-18 12:15:08
Offline
#151 2015-10-18 12:26:44
Offline
#152 2015-10-18 12:27:58
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)
Offline
#153 2015-10-18 12:31:20
Offline
#154 2015-10-18 13:15:42
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
Offline
#156 2015-10-18 13:56:53
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