Timeline for ExpressionEngine Matrix :total_rows doesn't work when no rows
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 8, 2015 at 6:38 | comment | added | Andris Sevcenko | For EE 2.9, you should go with {if '{matrix:total_rows}' && '{matrix:total_rows}' > 0 }stuff happens{/if} to avoid template errors. | |
Apr 8, 2015 at 2:42 | comment | added | JamesNZ | Thanks. I thought I'd tried that, but evidently not! The docs definitely imply the :total_rows property would work in this context docs.pixelandtonic.com/matrix/templating/field.html#total-rows | |
Apr 8, 2015 at 2:41 | vote | accept | JamesNZ | ||
Apr 7, 2015 at 21:56 | history | answered | BrandonOHara | CC BY-SA 3.0 |