Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#221 2018-04-26 10:17:40
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,080
- 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.
Online
#222 2018-04-27 02:33:19
- robhert
- Member
- From: Perú
- Registered: 2007-04-27
- Posts: 204
- Website
Re: etc_pagination: paginate everything
Thanks etc. Currently using <txp:article />
. :)
Offline
#223 2018-09-14 09:48:03
- philwareham
- Core designer
- From: Haslemere, Surrey, UK
- Registered: 2009-06-11
- Posts: 3,437
- 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: 4,080
- Website
Re: etc_pagination: paginate everything
Hi Phil,
have you tried next='<txp:text item="next" />'
, it should work as usual..?
Online
#225 2018-09-14 10:09:52
- philwareham
- Core designer
- From: Haslemere, Surrey, UK
- Registered: 2009-06-11
- Posts: 3,437
- 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: 4,080
- Website
Online
#227 2019-08-15 09:04:37
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,469
- Website
Re: etc_pagination: paginate everything
Hi Oleg,
I am making minor changes to my site, as sticky articles are not included in the feeds.
I am including a simplified code I am using in the blog section as I can not see what might be wrong.
<txp:evaluate query='<txp:page_url type="pg" /> = 1'>
<txp:article status="live" limit="9999" listform="sticky_form" />
</txp:evaluate>
<txp:article limit="10" listform="live_form" form="" />
<txp:etc_pagination range="5" prev="Previous" next="Next" wraptag="ul" break="li" />
In the sticky_form
I have
<txp:if_custom_field name="c10" value="x">
<article class="sticky"><h3>
<a href="<txp:permlink />" rel="bookmark"><txp:title /></a></h3>
<txp:excerpt />
</article>
<txp:else />
</txp:if_custom_field>
and In the live_form
I have
<txp:if_custom_field name="c10" value="">
<article class="live">
<h3><a href="<txp:permlink />" rel="bookmark"><txp:title /></a></h3>
<txp:excerpt />
</article>
<txp:else />
</txp:if_custom_field>
Can anybody spot where I am messing up?
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#228 2019-08-15 09:11:30
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,469
- Website
Re: etc_pagination: paginate everything
Got it! <txp:page_url type="pg" /> = 1'>
should be <txp:page_url type="pg" /> = 2'>
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#229 2020-01-29 11:59:21
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,469
- Website
Re: etc_pagination: paginate everything
I discovered a minor issue which exists on 4.7.x but I have to check further for the latest betas. I am not sure if this issue is with the etc_pagination or txp.
The plugin does not seem to be listing pages which do not reach the 10
limit. The bug is demonstrated in our site after visiting the last page, and clicking on the last article. In theory, the previous links (appearing on the left), should have been visible on ?pg=170
(or rather not… see below) which is not listed.
The tags I use:
<txp:article limit="10" c10="" listform="live_form" form="" />
<txp:etc_pagination range="5" prev="Previous" next="Next" wraptag="ul" break="li" />
A note here that on 4.7.x the remaining links have no value in the c10 cf and in my understanding, they should not be appearing there.
On the latest beta, those links are correctly omitted.
I have to create some faux articles in order to further observe the behaviour in 4.8 beta.
For your info, the particular section has 1689 posts, three of which are marked with the cf field and they appear in the home page of the blog.
The complete structure of the page is available on github.
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#230 2020-01-29 16:51:19
- etc
- Developer
- Registered: 2010-11-11
- Posts: 4,080
- Website
Re: etc_pagination: paginate everything
Yiannis, 169x10 = 1690 > 1689
, why ?pg=170
would be listed with 1689 posts?
Online