r4nonE Posted October 10, 2013 Share Posted October 10, 2013 (edited) Hi, I would like insert a common header/footer in the html mails files. There is a way to include a 'header.tpl' file into the 'accounts.html' file located in themes/<my_theme>/mails/<my_culture>/ directory? I've try with '{include file='header.tpl'}' and '{php} include('header.tpl'); {/php}' but their not working. Thanks, Daniel. Edited October 10, 2013 by r4nonE (see edit history) Link to comment Share on other sites More sharing options...
r4nonE Posted October 12, 2013 Author Share Posted October 12, 2013 Nobody knows? Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted October 21, 2013 Share Posted October 21, 2013 HTML doesn't have an 'include' mechanismTherefore you cannot include files (tpl, php, html) into HTML file {include=MY_FILE} and {php}{/php} is a smarty code not html code If you just need to add a static header/footer to your email template, then you just have to insert it straight to the *.html email template file. And remember ... you should use html <table> tag for your header and footer content so it will displayed correctly in email client (web based or desktop) Link to comment Share on other sites More sharing options...
parsifal Posted October 23, 2013 Share Posted October 23, 2013 HTML doesn't have an 'include' mechanism Therefore you cannot include files (tpl, php, html) into HTML file But some web servers, like Apache, support SSI. Could this maybe be a starting point for what the OP is trying to accomplish...? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now