Hi,
I want my add-on to load a js file depending on the time of year. It shall be included only between November 27th and January 6th of the next year.
I did not succeed testing for this date range with pure template conditionals (
So is there either a way how to check for the date range with pure template conditionals, or how to reuse the logic that the templater does use to create the public path to the js file?
Best regards
TiKu
I want my add-on to load a js file depending on the time of year. It shall be included only between November 27th and January 6th of the next year.
I did not succeed testing for this date range with pure template conditionals (
xf:if
), so now I'm trying to achieve the desired result with a callback function (xf:callback
). It works, but I have to build the script file's path by myself and cannot use vb:js
.So is there either a way how to check for the date range with pure template conditionals, or how to reuse the logic that the templater does use to create the public path to the js file?
Best regards
TiKu