Page 1 of 1
CMSMS 2.0: $page_lang no longer works?
Posted: Wed Sep 16, 2015 2:56 pm
by pschoenb
How do I query the language of a page in 2.0? $page_lang is empty.
Re: CMSMS 2.0: $page_lang no longer works?
Posted: Wed Sep 16, 2015 5:37 pm
by Rolf
$page_lang??
Re: CMSMS 2.0: $page_lang no longer works?
Posted: Wed Sep 16, 2015 6:32 pm
by pschoenb
Rolf wrote:$page_lang??
I want to query the language of the current page. How do I do it?
On that occasion, I noticed that the page related meta tags (not the global ones) no longer appear. What could be the reason?
Re: CMSMS 2.0: $page_lang no longer works?
Posted: Thu Sep 17, 2015 2:11 pm
by Rolf
You have to be more clear what you want, what fails and what you have done trying to fix it.
Post example code, URL's of the website, System Information, screen dumps, etc. etc.
Without this, asking for help is pointless!!
Re: CMSMS 2.0: $page_lang no longer works?
Posted: Thu Sep 17, 2015 3:24 pm
by pschoenb
Rolf wrote:You have to be more clear what you want, what fails and what you have done trying to fix it.
Post example code, URL's of the website, System Information, screen dumps, etc. etc.
Without this, asking for help is pointless!!
Ok, I have a multilangual, babel-based website. Each page has per page meta tags to specify the page language.
So far, the following code worked to fill in the language in the template:
Code: Select all
<__html lang="{$page_lang|truncate:'2':''}">
(The <__html> tag is incorrectly rendered with a long underscore. No idea, why.)
Now
- The per page meta tags are missing in the <head> section.
- $page_lang is empty.