I've created 2 custom campaign tags:
DAYS_UNTIL_2
{% set difference = date(date('21-1-20')).diff(date('now'|date('Y/m/d'))) %}{% set leftDays = difference.days %}{{leftDays}}
DAYS_UNTIL
{% set difference = date(date('21-1-26')).diff(date('now'|date('Y/m/d'))) %}{% set leftDays = difference.days %}{{leftDays}}
Which work fine in most templates, but when i try and use
[RANDOM_CONTENT: BLOCK: N1 | BLOCK: N2]
Using [CCT_DAYS_UNTIL] and [CCT_DAYS_UNTIL_2] no longer works when inside the blocks.
Are there any good workarounds for this?
DAYS_UNTIL_2
{% set difference = date(date('21-1-20')).diff(date('now'|date('Y/m/d'))) %}{% set leftDays = difference.days %}{{leftDays}}
DAYS_UNTIL
{% set difference = date(date('21-1-26')).diff(date('now'|date('Y/m/d'))) %}{% set leftDays = difference.days %}{{leftDays}}
Which work fine in most templates, but when i try and use
[RANDOM_CONTENT: BLOCK: N1 | BLOCK: N2]
Using [CCT_DAYS_UNTIL] and [CCT_DAYS_UNTIL_2] no longer works when inside the blocks.
Are there any good workarounds for this?