Jump to content

{Solved}Different Tpl File Per Language


sandokan71

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...