Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-10-16 21:26:23

richardjkeys
New Member
From: Barnsley/Halifax UK
Registered: 2008-09-09
Posts: 3
Website

Older/Newer Links not displaying in Section

I’ve been asked to take a look at a site by a client, but it’s a while since I’ve used TXP…please forgive any rustiness!

There’s a blog section on the site, containing 8 articles. The following is used to display articles:

<txp:if_section name="blog">
  <txp:if_article_list>
    <txp:article form="blog_excerpt" limit="5" />
    <txp:older>Older</txp:older>
    <txp:newer>Newer</txp:newer>
  </txp:if_article_list>
  <txp:if_individual_article>
    <txp:article form="blog_entry" limit="1" />
  </txp:if_individual_article>
</txp:if_section>

The limit works fine – I can change it to 99 and see all articles. However, the Older and Newer links never appear (unless I set showalways, then it shows the text with no link).

Strangely, it seems to only be this section that does this – I have a section called courses which I can use the above code with fine.

Also, going to /blog?pg=2 shows page 2 as I’d expect.

A tag trace shows the following for older and newer:

<txp:older>
</txp:older>
<txp:newer>
</txp:newer>

But, it shows this for the working links in courses too, so I’m not sure how much help that will be.

Does anyone have any idea what might cause this?

Offline

#2 2012-10-16 23:08:54

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Older/Newer Links not displaying in Section

Are there other <txp:article /> tags on the same article list page? If so, then you must change the other tags to <txp:article_custom />.

Offline

#3 2012-10-17 08:06:20

richardjkeys
New Member
From: Barnsley/Halifax UK
Registered: 2008-09-09
Posts: 3
Website

Re: Older/Newer Links not displaying in Section

Aha! I’d searched for another article tag but missed it…it had been used in the header to output a form.

Thanks for that!

Offline

Board footer

Powered by FluxBB