Last active
October 5, 2015 20:08
-
-
Save jeromecoupe/2869233 to your computer and use it in GitHub Desktop.
ExpressionEngine: Insert a <div> every x rows within a loop without PHP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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