Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: How to make the 1st article different from the 2d and the 3d?
bump
I’m trying to do this (TxP 4.01), but it’s not working at all. My code is as follows:
<code><div id=“first”><txp:article_custom limit=“0,1” form=“entry_excerpt” section=“journal” /></div><txp:article_custom limit=“1,1” form=“entry_excerpt” section=“journal” />
<txp:article_custom limit=“2,1” form=“entry_excerpt” section=“journal” /></code>
But I get a blank page. Changing to <code><txp:article_custom limit=“1” /></code> works fine, so the function is returning something. Does v4 still work with the offset format for the limit attribute?
Edit: Never mind, found the answer. For anyone else’s future reference, use limit=“1” offset=“x”, where x is the number of articles to skip.
Last edited by Buddy Bradley (2005-10-13 12:57:12)
Offline