OK. That makes sense. Is it safe to assume that it will be added to next version of EE as a standard conditional variable?
Why would you assume that? You’re welcome to put it as a feature request; but it works perfectly well now within the {}.
Yes it works but at the beginning of our discussion you weren't even sure whether or not to include the {} in the conditional. To me that says that if the staff doesn’t know that it’s supposed to have {} around the variable then how is a general user. I didn't see anywhere in the docs where it outlines this special usage of {current_time} in conditional statements. All it says is:
NOTE: Unlike the rest of the Standard Global Variables, {current_time} is parsed very early on in the Template parser, which allows you to make dynamic use of it in your tags, for instance as a tag parameter, or in a conditional.
To me, that says “you can use it in a conditional just like your other variables”. If that’s the case then either having to use {} is either a bug, in which case it should be fixed in a new build or next release, or it's simply undocumented.
As far as date_heading: you’re asking ExpressionEngine to read your mind instead of reading the code. I don’t mean to argue with you but this is really, really important. ExpressionEngine can do only what you tell it. We don’t make assumptions, and you’ve encased it within a conditional that is telling everything inside that conditional not to display in this instance. It doesn’t matter if it’s the date_heading code or the text “pink elephants rock”.
If you want it to work *differently* then you should limit, not by conditionals, but by parameters; or consider writing a plugin specific to your project.
Actually the opposite is true. I’m asking EE not to read my mind but to act only when requested and not before then. By using a conditional I’m asking the {date_heading} tag pair to react to the first record that meets that criteria and there after. The test we preformed tells me that it’s reacting to the first record returned by the weblog:entries tag which doesn’t meet the criteria so therefore it doesn’t execute.
Either way you I look at it, your telling me that’s the way that EE is meant to work so I have to deal with it or come up with a plugin that works the way I’d expect it to.
Lisa, I sincerely thank you for sticking with me in this thread. I have a better understanding of how the {date_heading} tag pair and the {current_time} global variable work. All your comments are greatly appreciated.