XF 2.1 Change banner image based on day number?

Mave

Active member
I've prepared 365 banners like so:

bannerimage_1.jpg
bannerimage_2.jpg
bannerimage_3.jpg
...
bannerimage_365.jpg
bannerimage_366.jpg

How can I automatically let the header image (banner) change based on the day number?

Thanks in advance!
 
Thank you @DL6 this works but only if I re-save the file containing the css rule every day, not automatically for some reason.
Any idea why this might be happening?
Anyone has any idea?

Code:
bannerimage_{{ date($xf.time, 'z') + 1 }}.jpg
works, but does not change unless I manually re-save the file every day.
 
Back
Top Bottom