Published by Mijingo

movie icon image

EE Insider Blog

Spend your time learning and developing sites with ExpressionEngine and we'll use this blog to keep you informed of all the news related to ExpressionEngine and CodeIgniter.

» Read more in the Archives.

» Have a tip? Send us your EE news.

Learn ExpressionEngine Today

Over a series of 8 videos, watch and learn as Ryan builds an entire ExpressionEngine website from beginning to end. Get started now.

New in 2.0: On is Yes, Off is No

Rather than point out all of the little instances in separate entries, here’s the deal with some parameters in EE 2.0. “On” is now “Yes,” “Off” is now “No.”

The biggest change (at least as far as the first response to any EE problem is concerned) is dynamic=“off”. It’s not off, it’s no!

{exp:channel:entries limit="5" dynamic="no"}
  
...
{/exp:channel:entries} 

This also goes for dynamic_start, relaxed_categories_mode and sticky.

So, next time someone asks why their most recent entries won’t display in the sidebar of their site, you can shout: dynamic=“no”!

 

Posted on Jan 11, 2010 by Ryan Irelan

Filed Under: ExpressionEngine 2

bjorn20:48 on 01.11.2010

Yes is definitely the new On!

Brian20:55 on 01.11.2010

Sounds good to me!

Malacandra04:10 on 01.13.2010

That seems like a completely arbitrary and gratuitous change… which will necessitate anyone considering upgrading to 2.0 to go through their templates to change the coding of a parameter that’s functionally identical.

Why?

Chris Newton05:22 on 01.14.2010

What the EE dudes need to do is what we’ve done with some of our software. Expect booleans, and program for them.

yes, 1, true, on == TRUE
no, 0, false, off == FALSE

That simple. Make all of the above work, not just one. If the software needs a boolean, make it understand booleans.