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

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
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?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom