Skip to content

Instantly share code, notes, and snippets.

@thetristan
Created February 29, 2012 00:51
Show Gist options
  • Save thetristan/1936640 to your computer and use it in GitHub Desktop.
Save thetristan/1936640 to your computer and use it in GitHub Desktop.
ExpressionEngine Loop/Split Template Pseudo Code
{!-- Looping and splitting entries --}
{exp:channel:entries channel="foo"}
{if count == 1}
<ul>
{/if}
<li>{bar}</li>
{if count == total_results}
</ul>
{if:else}
{switch="|||</ul><ul>"}
{/if}
{/exp:channel:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment