0

I have a {exp:channel:entries} loop inside of an {exp:freeform:form} pair tag. When I call the {count} variable inside the channel entries loop, I'm expecting the count of the channel entries. Instead, it is only returning 1.

When I use this same exact channel entries loop outside the freeform tags, it correctly increments the count with each entry. I know that {freeform:count} exists and the I presume this is done in order to not interfere with the CE count.

Does anyone have any idea why this might be happening?

1

Try putting the channel entries loop in an embedded template.

| improve this answer | |
  • This worked. Do you mind providing me a technical explanation as to why? Thanks! – Caleb Faruki Nov 4 '15 at 19:46
  • 1
    @baph0mt Just a namespace collision. The embed is parsed completely separately, so there isn't any collision. – jrothafer Nov 4 '15 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.