Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-08-15 16:48:45
- prince_of_oreon
- New Member
- Registered: 2006-08-15
- Posts: 6
Limiting Number of Items
When posting a list of items in a category, I can’t seem to limit the number of items listed. I’ve read the TXP Tags manual. Can this be done with a tag?
Offline
#2 2006-08-15 18:31:33
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Limiting Number of Items
Would you please elaborate?
Offline
#3 2006-08-15 20:19:12
- prince_of_oreon
- New Member
- Registered: 2006-08-15
- Posts: 6
Re: Limiting Number of Items
When I use the following can I limit the number of articles to be displayed by the tag?
<code><txp:article category=“hope-for-the-future” wraptag=“p” /></code>
Last edited by prince_of_oreon (2006-08-15 20:23:17)
Offline
Re: Limiting Number of Items
<code>limit=“10”</code> should limit the number of articles to 10…<br />
<txp:article category="hope-for-the-future" wraptag="p" limit="10" />
<br />I must be misunderstanding what you’re trying to do…
Last edited by alicson (2006-08-15 20:25:12)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#5 2006-08-15 20:25:09
- prince_of_oreon
- New Member
- Registered: 2006-08-15
- Posts: 6
Re: Limiting Number of Items
I think that ‘limit=“10”’ may have not even been valid. I edited it out as I was just testing it and forgot to omit it. I’m not sure.
What I am attempting to do is list the last 10 articles from a given category.
Offline
Re: Limiting Number of Items
the limit attribute really should work
you’re doing that but ending up with a longer list than 10?
Last edited by alicson (2006-08-15 20:27:39)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#7 2006-08-15 21:21:20
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Limiting Number of Items
Yes, limit certainly is valid and should work. However, category is not: category only works for article_custom, not article.
Offline
#8 2006-08-15 21:58:22
- prince_of_oreon
- New Member
- Registered: 2006-08-15
- Posts: 6
Re: Limiting Number of Items
Mary wrote:
Yes, limit certainly is valid and should work. However, category is not: category only works for article_custom, not article.
oh. I’ve got it now. Thanks a lot. I thought that article_custom did something totally different.
Offline
Pages: 1