I'm still feeling I'm rather swimming against the current with CouchCMS, as there are some pretty simple things I'm finding difficult to do. I'm sure I'm just going about them the wrong way. One such is to do with the mix of native PHP code with Couch template use. I want to display one bit of HTML if today's date is within a certain date range, another if it's in a different date range, and so on.
With native PHP I'd probably simply compare DateTime objects and use different heredoc contents. But I'd like to use the clean tags of CouchCMS instead if I could. Can I concoct some kind of suitable test for the cms:if tag using native PHP? Or is there some other way I should be doing this instead?
With native PHP I'd probably simply compare DateTime objects and use different heredoc contents. But I'd like to use the clean tags of CouchCMS instead if I could. Can I concoct some kind of suitable test for the cms:if tag using native PHP? Or is there some other way I should be doing this instead?