Textpattern CMS support forum

You are not logged in. Register | Login | Help

#221 2018-04-26 10:17:40

etc
Developer
Registered: 2010-11-11
Posts: 2,778
Website

Re: etc_pagination: paginate everything

You need to set the number of pages in etc_pagination in this case, <txp:article_custom /> does not set it. You can try

<txp:etc_pagination pages='<txp:etc_numpages pageby="5" section="blog" />' ... />

In 4.7 you can replace etc_numpages with

<txp:article_custom pgonly pageby="5" section="blog" />

But you’d better switch to <txp:article /> if you can.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#222 2018-04-27 02:33:19

robhert
Member
From: Perú
Registered: 2007-04-27
Posts: 198
Website

Re: etc_pagination: paginate everything

Thanks etc. Currently using <txp:article />. :)

Offline

#223 2018-09-14 09:48:03

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,049
Website

Re: etc_pagination: paginate everything

Hi Oleg,

Just creating a Textpattern theme that uses etc_pagination if installed. Quick question, how can I allow localisation for the prev and next texts? i.e. to use the gTxt translations we have available in the core instead of hardcoded text?

Thanks!

Offline

#224 2018-09-14 10:03:27

etc
Developer
Registered: 2010-11-11
Posts: 2,778
Website

Re: etc_pagination: paginate everything

Hi Phil,

have you tried next='<txp:text item="next" />', it should work as usual..?


etc_[ query | search | pagination | date | tree | cache ]

Offline

#225 2018-09-14 10:09:52

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,049
Website

Re: etc_pagination: paginate everything

etc wrote #314014:

have you tried next='<txp:text item="next" />', it should work as usual..?

Great, I didn’t realise it would be that simple! Thanks Oleg.

Offline

#226 2018-09-14 10:15:38

etc
Developer
Registered: 2010-11-11
Posts: 2,778
Website

Re: etc_pagination: paginate everything

philwareham wrote #314016:

Great, I didn’t realise it would be that simple!

There is actually no way for a plugin to complicate it, since the attributes are parsed before the tag is called.


etc_[ query | search | pagination | date | tree | cache ]

Offline

Board footer

Powered by FluxBB