Published by Mijingo

tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Count”

Multi Column Entry Lists

Posted on June 08, 2009 by Hambo

If you have a fixed number of entries and you want to split them over a few columns, this is easy with conditionals and the count variable.

{exp:weblog:entries weblog="stuff"}
{if count 
== OR count == OR count == 7}
<ul class="column">
{/if}
<li>{title}</li>
{if count == OR count == OR count 

Read this tip

Custom counter for loops that don’t support {count}

Posted on June 01, 2009 by JonnyUK

Every now and then you might come across a situation where you want to count within a loop but unfortunately the {count} variable is not available.

This is a common problem when dealing with related entries because they are cached internally causing various dynamic statistical variables such as

Read this tip

Search EE Insider Tips
Sponsored By