Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-11 15:38:32

jim_01
Member
Registered: 2008-01-17
Posts: 35

Next articles link not working

Hi,

I have this setup for my main news page, it lists the first 5 and then I want to be able to click next for older articles, but I cannot seem to make it work. Can anyone help?

<txp:article_custom status=“sticky” section=“news” limit=“1” form=“article_excerpt” />

<txp:article_custom category=“news” form=“article_excerpt” limit=“5” pgonly=“0” section=“news” status=“4” />

<txp:text item=“newer” /><txp:text item=“older” />

Thanks!

Offline

#2 2008-04-11 16:22:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Next articles link not working

article_custom lists cannot be paginated also <txp:text item="newer" /><txp:text item="older" /> cannot generate links for older/newer

Last edited by colak (2008-04-11 16:23:46)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-04-11 16:23:42

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Next articles link not working

  1. Pagination works only with <txp:article /> not with <txp:article_custom />
  2. You also need txp:older, txp:newer etc. navigation tags to make actual links
  3. At last, txp:text just outputs text strings, not links.

See more: Alphabetical Tag Listing

Offline

#4 2008-04-11 16:25:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Next articles link not working

That was very close Jukka:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2008-04-11 17:05:05

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Next articles link not working

Yeah, it was, a cap of a minute, but mine txp:older was faster by 3 secs than your edit :P

Last edited by Gocom (2008-04-11 17:06:52)

Offline

#6 2008-04-11 17:10:40

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Next articles link not working

Gocom wrote:

but mine txp:older was faster by 3 secs than your edit :P

That’s my damn slow connection:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2008-05-02 12:23:57

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Next articles link not working

i have a problem with those tags and i don’t know i can resolve.
In a page i must extract different article from a different section but all article must have one defined category.

So i have use article_custom. But i cant use txp:newer and txp:oledr.
How any other method i can user to obtain the some result?

Offline

#8 2008-05-02 12:47:38

MarcoK
Plugin Author
From: Como
Registered: 2006-10-17
Posts: 248
Website

Re: Next articles link not working

thank’s I have resolved.

I have installed rss_superarchive. It work as Article. I have defied a multi section and one catgory, and it work fine.

Thank’s wilshireone

Offline

Board footer

Powered by FluxBB