We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

exp:channel in pairs?

Development and Programming

onno@itmaze.com.au's avatar
[email protected]
7 posts
8 years ago
onno@itmaze.com.au's avatar [email protected]

I’m not across this whole system, so it may be that I’m missing something.

I’ve come across a template that appears to have an odd, as opposed to even, number of exp:channel entries in it. I’m expecting matched {exp:channel}{/exp:channel} sets. I came across the template while trying to find out why a list tops out at 100 elements. I need to add pagination, but until I get what’s going on, I’m stuck.

Is there any circumstance in which this is a valid syntax, or is this just a bug that’s been around for several years?

I spent a few hours on this yesterday, attempting to indent/reflow the template to understand what the intent is, but so far that has eluded me.

As a side question, is there a tool that will pretty print EE templates?

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
8 years ago
Ingmar Greil's avatar Ingmar Greil
I came across the template while trying to find out why a list tops out at 100 elements.

That’s the built-in limit. You can use limit=”…” to override.

Is there any circumstance in which this is a valid syntax

It could work with a conditional in certain circumstances, but I’d advise against it.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.