Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-03-23 17:35:51

richtestani
Plugin Author
Registered: 2009-11-08
Posts: 128

Count articles during output

I’m trying output articles as rows wrapped in a div, which would output as:

<div class="row">
 <div class="article">article</div>
 <div class="article">article</div>
 <div class="article">article</div>
 </div><!-- end of row -->

How can I trace where to start new rows?
I tried using a php counter variable, but I don’t think its going to work.

Any help with this would be great.
Thank you.
Rich

Offline

#2 2010-03-23 19:41:42

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Count articles during output

Try zem_nth.

Offline

#3 2010-03-23 19:47:16

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Count articles during output

Maybe this or this helps?

Offline

Board footer

Powered by FluxBB