Digiteo Posted March 12, 2019 Share Posted March 12, 2019 (edited) 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 Edited March 12, 2019 by Digiteo (see edit history) 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