Placeholder condition issue

In a getResources tpl, I have:

[[+publishedon:strtotime:date=`%a %b %d, %Y`:is=`[[!getDate:date=`%a %b %d, %Y`? &offset=`today`]]`:then=`yes`:else=`no`]]

This returns ‘no’.

In the same tpl I have:

[[+publishedon:strtotime:date=`%a %b %d, %Y`]]
[[!getDate:date=`%a %b %d, %Y`? &offset=`today`]]

This seems to return identical values, hence the condition above should produce ‘yes’.

What am I missing?

Thanks for any input!

you could try to call both, the placeholder and the snippet uncached.
Also your getResources - call should be called uncached, here.

Thanks Bruno. That was the issue.

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.