RSS Feed/News How to count inside foreach in a template?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
29,569
Points
823

Reputation:

I've looked around but can't seem to find what I'm looking for.

I have my foreach loop:

Code:

Code:
<xf:foreach loop="$view" value="$value">
</xf:foreach>

But I need to get the count. I noticed there's count="$count" in the approval_queue template but apparently it doesn't work?

What would be the best way to do a count++ inside my foreach?

Continue reading...
 
Status
Not open for further replies.
Top