Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#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
Offline
Pages: 1