Code: Select all
<?php
if($sl=='sk') $cf['site']['template']="template";
if($sl=='de') $cf['site']['template']="template_de";
if($sl=='en') $cf['site']['template']="template_en";
?>
It was becasue of some parts in main template were left off in another languages.
So I had:
[templates]
stylesheet.css
template.htm
/[template_de]
stylesheet.css
template.htm
/[template_en]
stylesheet.css
template.htm
Now this trick doesn't work. The language contents are loaded, but only into the basic template defined in config.sys. How to make it? I want - switching to DE or EN open the page with another tamplate. I know, I can use template definition on each language page, but this seems to be possible easier.