Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-06-05 17:37:02
- John Wozniak
- Member
- Registered: 2006-10-20
- Posts: 37
How to Control Number of Articles on Secondary Pages
So I am in the home stretch with the site but there are still a few outstanding issues.
I would like the homepage to have 3 articles (or so) – so I have txp:article limit=“3” for the default page and txp:article limit=“1” for the archive page.
What I would like to have happen is have 3 articles on the homepage, but if you click on “Previous/Next” (at the bottom of the page) the page=2 and so on – I want those pages to just have a single article. Right now the secondary pages will list 3 (or how ever many are left 3 or less) articles as you can see here:
Any ideas on approaches to to this would be welcome – I went through all of textbook, but didn’t find anything that seemed to do the trick, but of course it could have been right there and I missed it.
Thanks.
Last edited by John Wozniak (2007-06-05 17:38:25)
Offline
Re: How to Control Number of Articles on Secondary Pages
Can the previous/next links link to the archive pages instead of to listing pages?
<txp:link_to_next><txp:next_title /></txp:link_to_next>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
Offline
#3 2007-06-05 20:29:55
- John Wozniak
- Member
- Registered: 2006-10-20
- Posts: 37
Re: How to Control Number of Articles on Secondary Pages
Perfecto! Just what I was after. Much thanks.
Last edited by John Wozniak (2007-06-05 20:30:23)
Offline
#4 2007-06-06 00:15:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: How to Control Number of Articles on Secondary Pages
Make use of the pageby attribute.
Textbook: article
Offline