tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

Tips tagged “Conditionals”

Better handling of comment list and comment form display

Posted on February 13, 2010 by Derek Hogue

First, I suggest making your comment form and comment list markup into distinct templates, which accept a single embedded variable (“weblog”). This allows you to reuse these templates wherever you allow comments on your site. Say these are located at embeds/comment_list and embeds/comment_form.

Read this tip

Using {if count == total_results}

Posted on May 31, 2009 by Christy Collins

In the EE docs, the description for the count conditional doesn’t clearly illustrate how useful this conditional can be.  You have available

{if count == '1'}...{/if} 
and 
{if count == total_results}...{/if} 

which means you can do things like deliver a design element (say, a divider) to all

Read this tip

Search EE Insider Tips
Sponsored By