sandokan71 Posted December 30, 2011 Share Posted December 30, 2011 Hi everybody, I'm stuck on coding something I thought it should be obvious but it just doesn't work as i think it should. The code in footer.tpl file : {if $language.iso_code == "en"}{include file="$tpl_dir./footer_cms.tpl"} {elseif $language.iso_code == "fr"}{include file="$tpl_dir./footer_cms_fr.tpl"} {else}{include file="$tpl_dir./footer_cms.tpl"} {/if} I've made up my own footer cms tpl file and a would like to have two version based on the choosen language. The same code work in in blocklanguage part but doesn't on the footer...does anybody got an idea why or how two manage to include different tpl files base on the language ? with this code i got only the last file for both languages. Thanks !!! Link to comment Share on other sites More sharing options...
Snade Posted December 30, 2011 Share Posted December 30, 2011 Did you tried {include file="$tpl_dir./footer_cms_{$lang_iso}.tpl"} ? you just need to have that file for every language. footer_cms_en.tpl, footer_cms_fr.tpl and etc. I hope it works for you 4 Link to comment Share on other sites More sharing options...
sandokan71 Posted December 30, 2011 Author Share Posted December 30, 2011 HI snade, thank you very much ! It works... Link to comment Share on other sites More sharing options...
Snade Posted December 30, 2011 Share Posted December 30, 2011 Glad to help. Dont forget to add SOLVED to the topic name, and I'll be happy if you "like" my post, if it was helpfull to you 1 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