Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#97 2015-09-16 01:06:20
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: etc_pagination: paginate everything
how to make a pagination
< 15 >
<, > – prev, next
15 – page number
Offline
#98 2015-09-16 10:34:37
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: etc_pagination: paginate everything
ALSO
Not displayed pagination.
I need pagination in the header < 15 >
So it works.
…
</header>
<section>
<txp:article limit=“2” />
</section>
<txp:etc_pagination prev=”<” next=”>” wraptag=“ul” break=“li” class=“pagi” />
<txp:output_form form=“footer” />
…
And now is not working (
…
<txp:etc_pagination prev=”<” next=”>” wraptag=“ul” break=“li” class=“pagi” />
</header>
<section>
<txp:article limit=“2” />
</section>
<txp:output_form form=“footer” />
…
Offline
Offline
#100 2015-09-16 10:45:04
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: etc_pagination: paginate everything
It is necessary to put the pagination above tag “article”
<txp:etc_pagination />
…
…
<txp:article />
Last edited by alivato (2015-09-16 10:45:43)
Offline
#101 2015-09-16 10:53:54
Re: etc_pagination: paginate everything
Try this:
<txp:variable name="articles"><txp:article limit="2" /></txp:variable>
<txp:etc_pagination prev=”<” next=”>” wraptag=“ul” break=“li” class=“pagi” />
<txp:variable name="articles" />
Last edited by NicolasGraph (2015-09-16 10:54:14)
Offline
#102 2015-09-16 11:04:25
Re: etc_pagination: paginate everything
alivato wrote #294862:
It is necessary to put the pagination above tag “article”
Yes, it’s a Textpattern limitation. You can circumvent it with pgonly
attribute
<txp:article limit="2" pgonly="1" />
<txp:etc_pagination />
<txp:article limit="2" />
or (better) with <txp:variable />
, as suggested by Nicolas.
To display only the current page, use range
attribute:
<txp:etc_pagination range="0" next="»" prev="«" />
Offline
#103 2015-09-16 11:21:34
- alivato
- Member
- Registered: 2011-03-31
- Posts: 151
Re: etc_pagination: paginate everything
Very good.
Thanks NicolasGraph & etc
Last edited by alivato (2015-09-16 11:22:06)
Offline
#104 2015-09-16 15:31:37
- msome
- Member
- Registered: 2015-09-16
- Posts: 32
Re: etc_pagination: paginate everything
Hi.
How to swap the page numbers.
reversenumberorder=“1” – It does not work
prev 1 2 3 … 10 11 12
to
default page(site.org) – 12 – last articles
12 11 10 … 3 2 1 next
Last edited by msome (2015-09-16 15:54:04)
Offline
#105 2015-09-16 17:26:48
Re: etc_pagination: paginate everything
Hello msome, welcome to the forum.
msome wrote #294907:
reversenumberorder=“1” – It does not work
It works in my tests, but since I have inherited it from ob1_pagination
and never really used, I may miss something. What is the result you obtain, and what you’d expect in place?
Offline
#106 2015-09-16 18:14:11
- msome
- Member
- Registered: 2015-09-16
- Posts: 32
Re: etc_pagination: paginate everything
Hi, and thx.
_________________________________________________________
IF
<txp:etc_pagination range=“3” next=”»” prev=”«” />
RESULT
_________________________________________________________
_________________________________________________________
IF
<txp:etc_pagination range=“3” next=”»” prev=”«” reversenumberorder=“1” />
RESULT
_________________________________________________________
It should to make it
red 5 – is default page(site.org) – last articles
Last edited by msome (2015-09-16 18:18:10)
Offline
#107 2015-09-16 21:49:05
Re: etc_pagination: paginate everything
Yes, something is wrong with reversenumberorder
, thanks for the report and sorry, will fix.
Offline
#108 2015-09-18 06:52:47
Offline