Hello,
How can i check language on CMS page?
I use
{if $language.iso_code=='gb'}{/if}
on homepage (domain.com/gb/) and it works, unfortunatelly when i use exact same code on other pages (i.e. domain.com/gb/content/11-test) - it fails. Simply print result of {$language.iso_code} is empty, like all others language related vars... I use shortcodes to include my tpl files into CMS pages. What should i do now?
Debug says:
Notice: Undefined index: language