Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
(solved) The last five articles, without the first
Hi :-)
On my blog is just an article printed, on the bottom sidebar:
The last 8 articles, with this code
<txp:article_custom form=“letztebeitraege” sort=“Posted desc” class=“letzteartikel” limit=“8” wraptag=“ul” break=“li” label=“Die letzten 8 Artikel” labeltag=“h3” />
<txp:article_custom form=“letztebeitraege”:
<small><txp:posted format=”%d. %b %Y” />:</small> <txp:permlink title=“Permanent-Link”><txp:title /></txp:permlink>
This Code shows all article, but I want only The last eight articles, without the first
How do I change the code
Last edited by SuMu (2012-04-25 08:37:32)
Offline
Re: (solved) The last five articles, without the first
To skip the first article just add the attribute offset="1"
to your article_custom
tag, e.g.:
<txp:article_custom
form="letztebeitraege"
sort="Posted desc" class="letzteartikel"
limit="8" offset="1"
wraptag="ul" break="li"
label="Die letzten 8 Artikel" labeltag="h3"
/>
TXP Builders – finely-crafted code, design and txp
Offline
Re: (solved) The last five articles, without the first
Thanks Jakob! :-)
Offline