Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Offset Recent Articles?
I’m using TXP’s feature of recent articles, I’m looking at the manual but I couldn’t find a feature that states whether offset can be used. For example, <txp:recent articles limit=“10” offset=“1”> So the latest article isn’t displayed in the recent list. Is there a plugin that recitifies this, and what are the chances of it being a built in feature of TXP?
Cheers
Offline
#2 2005-12-27 17:03:56
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Offset Recent Articles?
<notextile><a href=“http://textpattern.com/faq/26/how-do-i-change-the-output-of-”>FAQ</a></notextile>
Offline
Re: Offset Recent Articles?
I’m not sure if offset is covered in that FAQ.
According to the TextBook, the recent_articles tag doesn’t have an attribute offset. The article and article_custom tags do have it, though.
Perhaps you just try it?
Offline
Re: Offset Recent Articles?
That’s what Mary said: Dump “recent_articles”, use “article_custom” instead.
Offline
Re: Offset Recent Articles?
Thanks guys though I do find it confusing that the manual doesn’t have the same answers as the FAQ, or does it? So is Recent_articles made redundant then? I’ll try article custom.
Cheers
EDIT: Having trouble with this. Here’s the code that I placed in the page:
<code><ul><txp:article_custom form=“recent” limit=“1,7” category=“book” sortby=“Posted” sortdir=“desc” /></ul></code>
In the form I used this:
<code><div id=“recentlist”><li><txp:permlink><txp:title /></txp:permlink></li></div></code>
So where have I gone wrong here?, do I need to include the section too? I do have many articles, and they did display using recent articles, I just needed the offset value
EDIT 2: FAQ needs updating, to mention that to get offset to work it’s <code> limit=“x” offset=“x”</code>
Last edited by sekhu (2005-12-28 11:34:40)
Offline
Pages: 1