Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-27 11:09:20
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
link to next is nog working good
Hello,
On my website i have a form like this :
<code>
<tpx:title />
<tpx: body/>
</code>
This form i call with this :
<code>
<div id=“tekst”>
<txp:article_custom form=“zwanger” limit=“4” section=“zwangerschap” sortby=“Posted” sortdir=“asc” listform=“zwanger” />
<txp:link_to_next><txp:next_title /> + »</txp:link_to_next>
</div>
</code>
But when i see the page i see 4 articles and then a link to article 2 instead of article 5.
How can i achieve that the next link will display article 5 instead of article 2.
Roelof
Offline
Re: link to next is nog working good
Hi Roelof,
Is there a reason why you use sortby and sortdir at the same time?
Maarten
Offline
#3 2006-01-27 14:26:44
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: link to next is nog working good
Yep,
I want to have the oldest article first.
So there is a line in the story that i tell.
It’s a sort a diary (if a spell it right)
Offline
Re: link to next is nog working good
Weird, what happens if you use link_to_previous?
Offline
#5 2006-01-27 14:39:07
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: link to next is nog working good
the same,
You can see it at www.tamarawobben.nl/zwangerschap
Offline
Re: link to next is nog working good
I think the link_to_next can only be used for linking to the next article when your viewing an individual article. It may be an option to use article_list with the <code><txp:newer></code> tag.
Last edited by maarten (2006-01-27 15:00:27)
Offline
#7 2006-01-27 15:59:24
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: link to next is nog working good
oke,
I try :
<code>
<txp:older> Vorige </txp:older>
<txp:newer> Volgende </txp:newer>
</code>
with the same section in the page section and no navigation at all.
Last edited by roelof (2006-01-27 16:20:52)
Offline
#8 2006-01-27 17:13:52
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: link to next is nog working good
<txp:older>
and <txp:newer>
don’t seem to work very well with <txp:article_custom />
. Since you are in section ‘zwangerschap’ and only displaying articles of section ‘zwangerschap’, you can use <txp:article />
instead. It will probably work then.
Offline
#9 2006-01-27 17:57:23
- roelof
- Member
- Registered: 2005-03-27
- Posts: 647
Re: link to next is nog working good
Thank you,
Now i can work further on my site.
Roelof
Offline
#10 2006-01-27 22:41:59
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: link to next is nog working good
FYI, this is explained in the FAQ that is linked at the top of every forum page.
Alex
Offline
Pages: 1