Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-11-12 05:49:31
- c41um
- New Member
- Registered: 2005-11-08
- Posts: 6
if_article_list limited to 10 articles per page?
hi,
On my site, within a perticluar section (mysec) I want to have a list of links to articles that are all in a perticular category, ‘mycat’.
i.e. when viewing ‘www.mysite.com/mysec’ you get a list of links to articles within the ‘mycat’ category.
I made a form that deals with all articles in ‘mysec’. In it I put something very similar the following code:
<txp:if_article_list>
<txp:if_article_category name="mycat">
...
<h1><txp:permlink><txp:title /></txp:permlink></h1>
...
</txp:if_article_category>
</txp:if_article_list>
That did the trick, until I had made more than 10 articles in ‘mysec’. Then the links failed to show up. After a little testing it seems to me that the form is only called 10 times, for the first 10 articles (or that the rest are wrapped to another page, which I cannot see with my current setup).
Is this the case? If so how can I set it so that all articles will show up on the same page?
Thanks – Calum
:EDIT: – arrgh wheres my code? have to fix this later – have to run just now!
(Edit: code is showing properly now. -Mary)
Last edited by Mary (2005-11-12 06:35:45)
Offline
#2 2005-11-12 06:21:04
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: if_article_list limited to 10 articles per page?
FAQ: How do I post tags and code on the forum?, and
FAQ: How do I change the number of articles displayed?
Alex
Offline
#3 2005-11-12 06:35:51
- c41um
- New Member
- Registered: 2005-11-08
- Posts: 6
Re: if_article_list limited to 10 articles per page?
> zem wrote:
> FAQ: How do I post tags and code on the forum?, and
FAQ: How do I change the number of articles displayed?
lol (oops) – right, i’m gonna start looking thru the FAQ as well as forums before posting!
Offline
Re: if_article_list limited to 10 articles per page?
Well, well, I’m having the same trouble as c41um and sorry zem but …
If no limit is specified, the default is 5 … that seems to be right just for <code><txp:article /></code>
I’m trying to use this:
<code>
<txp:if_article_list>
<h2>Poesia</h2>
<ul>
<txp:article_custom form=“archives” section=“poesia” />
</ul>
<h2>Bitacora</h2>
<ul>
<txp:article_custom form=“archives” section=“bitacora” />
</ul>
<h2>Notas</h2>
<ul>
<txp:article_custom form=“archives” section=“notas” />
</ul>
</txp:if_article_list>
</code>
<br />
and I just obtain 10 articles per section! … Click here to see
Maybe, there’s a better way to do the same showing ALL the posts from each section, but I can’t find the right code to do it, can you help me?
Of course, if I have around 30 posts per section I could use limit=100 to show it all, but that’s not a right solution for a Weblog that grows quickly!
Thx
Offline
Re: if_article_list limited to 10 articles per page?
> duchamp wrote:
> Of course, if I have around 30 posts per section I could use limit=100 to show it all, but that’s not a right solution for a Weblog that grows quickly!
Nor do I think it’s “right solution” for a weblog that is growing quickly to place all posts from a section on one page.
For me, that would be over 2,500 posts, creating a page that would likely exceed 20MB in size.
That’s why you need to have a mechanism to break such a list up into multiple pages, and that’s what the “limit” attribute is for.
TextPattern user since 04/04/04
Offline
Re: if_article_list limited to 10 articles per page?
reid, you’re right but we are talking about different situations.
The site that Im talking about ( See the archives page here ) will not have more than 30 to 40 posts a year, and the archives page it’s a great help to navigate the site, and of course it’s not so big to be worried!
I guess that the mechanism to break such a list up into multiple pages must to be optional without a default limit, leaving the people decide if they want to list one million posts (just kidding! don’t try to show a decade of blogging in one page!) or just twenty or fifty posts in a list.
Thx
Last edited by duchamp (2005-11-21 16:59:56)
Offline
Re: if_article_list limited to 10 articles per page?
Allright, I’m going to use something like limit=“150” while the blog’s owner doesn’t break that limit, after that the archives list will be paginated.
Offline