Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#169 2016-04-07 13:15:58

Karsten
Member
From: Leiden, Netherlands
Registered: 2011-04-24
Posts: 47
Website

Re: etc_pagination: paginate everything

Thanks, I used philwareham’s suggestion and this works!

I noticed however that this plugin only works after the txp:article tag, hence, pagination at the bottom of the list page is perfect, but what if you also want to have the same pagination links appear at the top of the list page? This does work with Soo_pagenumbers. Is there a way to put pagination links on the top of the screen with etc_pagination as well?

Offline

#170 2016-04-07 13:48:51

etc
Developer
Registered: 2010-11-11
Posts: 4,258
Website GitHub

Re: etc_pagination: paginate everything

Karsten wrote #298542:

I noticed however that this plugin only works after the txp:article tag, hence, pagination at the bottom of the list page is perfect, but what if you also want to have the same pagination links appear at the top of the list page? This does work with Soo_pagenumbers. Is there a way to put pagination links on the top of the screen with etc_pagination as well?

soo_pagenumbers uses an interesting method, will think about it. Meanwhile, you can do the following:

<!-- store articles, setting pagination -->
<txp:variable name="articles" value='<txp:article />' />
<!-- pagination -->
<txp:etc_pagination />
<!-- articles -->
<txp:variable name="articles" />

Offline

#171 2016-04-07 13:51:36

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,508
Website GitHub Twitter

Re: etc_pagination: paginate everything

etc wrote #298545:

soo_pagenumbers uses an interesting method, will think about it. Meanwhile, you can do the following…

Can you not use the article tag pgonly attribute to achieve this – would be cleaner code.

Online

#172 2016-04-07 14:11:41

etc
Developer
Registered: 2010-11-11
Posts: 4,258
Website GitHub

Re: etc_pagination: paginate everything

philwareham wrote #298546:

Can you not use the article tag pgonly attribute to achieve this – would be cleaner code.

You can, but it makes two attribute sets to modify if you need to change one. And I hope the new parser will make all these tricks unnecessary, in 4.7 maybe.

Offline

#173 2016-10-05 10:47:57

msome
Member
Registered: 2015-09-16
Posts: 32

Re: etc_pagination: paginate everything

<txp:etc_pagination prev="<" next=">" wraptag="ul" break="li" class="pagi" />

How do instead

< 1 2 3 4 5 6 7 8 9 10

Like this

10 9 8 7 6 5 >

Last edited by msome (2016-10-05 10:48:26)

Offline

#174 2016-10-05 10:55:33

etc
Developer
Registered: 2010-11-11
Posts: 4,258
Website GitHub

Re: etc_pagination: paginate everything

This?

<txp:etc_pagination prev="<" next=">" wraptag="ul" break="li" class="pagi" gap="" first="" last="" range="2" pages="10" reversenumberorder="1" />

Edit: or this, if you want the page numbers be preserved:

<txp:etc_pagination prev="<" next=">" wraptag="ul" break="li" class="pagi" gap="" first="" last="" range="2" pages='<txp:etc_numpages />..1' />

Last edited by etc (2016-10-05 11:09:23)

Offline

#175 2016-10-05 11:36:55

msome
Member
Registered: 2015-09-16
Posts: 32

Re: etc_pagination: paginate everything

Thank you, Currently works, but to the full article somehow became displayed pagination..

Last edited by msome (2016-10-05 11:39:09)

Offline

#176 2016-10-05 12:02:17

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

Re: etc_pagination: paginate everything

msome wrote #301974:

Thank you, Currently works, but to the full article somehow became displayed pagination..

You probably just need to wrap it in <txp:if_article_list> … your pagination code … </txp:if_article_list> tags.


TXP Builders – finely-crafted code, design and txp

Offline

#177 2016-10-11 13:41:24

etc
Developer
Registered: 2010-11-11
Posts: 4,258
Website GitHub

Re: etc_pagination: paginate everything

msome wrote #301974:

the full article somehow became displayed pagination..

As jacob suggests, or download 0.4.7 (dev) and call it with reversenumberorder="3":

<txp:etc_pagination prev="<" next=">" wraptag="ul" break="li" class="pagi" gap="" first="" last="" range="2" reversenumberorder="3" />

Offline

#178 2016-11-30 01:25:48

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: etc_pagination: paginate everything

Hi Oleg, been trying to install the latest versions of etc_pagination – either 0.4.4 or 0.4.7b – over a 0.4.2 install and keep getting a 404 page after clicking upload…

I’ve modified the memory limit in php.ini and a couple of other settings, but still same result :(

Don’t have this problem updating other plugins on the site so I’m out of ideas now…

Offline

#179 2016-11-30 12:53:00

etc
Developer
Registered: 2010-11-11
Posts: 4,258
Website GitHub

Re: etc_pagination: paginate everything

Hi Jonathan, no idea, sorry. I have tried, it (4.7b) installs and works well for me. I don’t even see how plugin upload can take you to a 404 page. Any clue in your network console?

Offline

#180 2016-11-30 13:28:25

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: etc_pagination: paginate everything

Not so easy..the host has cPanel and can’t even find the error logs option nor any console access :(

Offline

Board footer

Powered by FluxBB