Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-04-25 07:33:13

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

(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)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#2 2012-04-25 07:45:52

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,001
Website GitHub

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

Online

#3 2012-04-25 08:37:12

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

Re: (solved) The last five articles, without the first

Thanks Jakob! :-)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

Board footer

Powered by FluxBB