Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#133 2015-10-17 17:31:00
Offline
#134 2015-10-17 17:32:36
Offline
#135 2015-10-17 17:38:23
Offline
#136 2015-10-17 17:38:58
Offline
#137 2015-10-17 17:42:22
Re: etc_pagination: paginate everything
etc wrote #295937:
Ah, that’s strange. It means
<txp:page_url />looses?pg=2query part, which it normally shouldn’t. Could it be that some other plugin rewrites it?
I disabled other plugins without success.
Offline
#138 2015-10-17 17:44:58
Re: etc_pagination: paginate everything
You can try to fix it by passing query='pg=<txp:etc_offset type="page" pageby="3" />' to your initial <txp:etc_pagination /> tag. And you actually don’t need adi_calc there, <txp:etc_numpages total='<txp:smd_tag_count wrapcount="" />' pageby="3" /> should do.
Offline
#139 2015-10-17 17:59:32
Offline
#140 2015-10-17 17:59:45
Re: etc_pagination: paginate everything
etc wrote #295939:
You can try to fix it by passing
query='pg=<txp:etc_offset type="page" pageby="3" />'to your initial<txp:etc_pagination />tag. And you actually don’t needadi_calcthere,<txp:etc_numpages total='<txp:smd_tag_count wrapcount="" />' pageby="3" />should do.
I can’t get it work, it just adds another other url variable …?pg=1&pg=2 but the problems with or without root are the same. With root, links go to the right pages but pagination always think it is the first page. Without root, links are broken (http://localhost:8888/oui_test/articles?pg=2) but if I go manually the right pages, it detects the current page and current/prev/next links are ok.
Edit: but etc_numpages works fine, thanks.
Last edited by NicolasGraph (2015-10-17 18:00:58)
Offline
#141 2015-10-17 18:04:21
Re: etc_pagination: paginate everything
etc wrote #295941:
Have you disabled
smd_tagstoo? Looks like it does somerequest_urirewriting.
No, I didn’t. Your plugin works fine on section and category pages but what I would like is to get it work with smd_tags so I didn’t disabled it.
Offline
#142 2015-10-17 18:27:14
Re: etc_pagination: paginate everything
If etc_offset detects the right page, this should work:
<txp:etc_pagination pages='<txp:variable name="pages" />' pgcounter="pg" range="2" prev='<' next='>'
root='<txp:page_url />/smd_tags/<txp:smd_tag_list wraptag="" break=""><txp:smd_tag_info /></txp:smd_tag_list>'
query='pg=<txp:etc_offset type="page" />'
/>
I don’t see how it could add a second pg url parameter, sorry.
Offline
#143 2015-10-17 18:35:25
Re: etc_pagination: paginate everything
etc wrote #295945:
If
etc_offsetdetects the right page, this should work:
<txp:etc_pagination pages='<txp:variable name="pages" />' pgcounter="pg" range="2" prev='<' next='>'...I don’t see how it could add a second
pgurl parameter, sorry.
THANK YOU!
I’ll maybe post on textpattern tips; it could be usefull for anyone else; what do you think?
Offline
#144 2015-10-17 18:39:24
Re: etc_pagination: paginate everything
You are welcome! And I will think of a more automatic solution for the next version.
Offline