I have a template I’m working on that needs to conditionally display a link around text depending on when it is.
Basically, I want to do this:
{if {date format="%W-23"} < week_number} link code {if:else} just text {/if}
Essentially, there’s a value in the entry called week_number, and because this particular template is for a mid-year set of data, I want to check the week number against the week of year (%W) minus 23. So week 1 for the data is equal to week 24 of the year.
I get an error:
Parse error: syntax error, unexpected T_STRING in /web/abgclass.com/newsite/kingsarms/expressionengine/libraries/Functions.php(640) : eval()‘d code on line 36
I can’t find any documentation discussing date math.
Thanks in advance.