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?
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.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.