Skip to content

Instantly share code, notes, and snippets.

@jeromecoupe
Last active October 5, 2015 20:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromecoupe/2869233 to your computer and use it in GitHub Desktop.
Save jeromecoupe/2869233 to your computer and use it in GitHub Desktop.
ExpressionEngine: Insert a <div> every x rows within a loop without PHP
{exp:channel:entries channel="news"}
{if '{switch="one|two|three"}' == "one"}<div class="row">{/if}
... something ...
{if '{switch="one|two|three"}' == "three" || count == total_results}</div>{/if}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment