Jump to content

PS 1.7 - i cant acces $language


Digiteo

Recommended Posts

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 by Digiteo (see edit history)
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...