Created
February 29, 2012 00:51
-
-
Save thetristan/1936640 to your computer and use it in GitHub Desktop.
ExpressionEngine Loop/Split Template Pseudo Code
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
{!-- 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