web2008 Posted October 4, 2020 Share Posted October 4, 2020 I thought the current calendar year {$ date_year} should work in email templates, but it does not. Does anyone know anything more about this? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 5, 2020 Share Posted October 5, 2020 12 hours ago, web2008 said: Does anyone know anything more about this? generally, you can't use the website template variables in email templates - you only have access to the variables/mergefields listed in the template and a few others. if you wanted to show the current year in an email template, you should be able to use the code below... {$date|date_format:'%Y'} even in v8, that shouldn't break the updated Smarty Security Policy. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted October 5, 2020 Author Share Posted October 5, 2020 Thanks brian! , this works fine! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.