CMSMS 2.0: $page_lang no longer works?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
pschoenb
Forum Members
Forum Members
Posts: 92
Joined: Sun Jul 15, 2007 1:18 pm

CMSMS 2.0: $page_lang no longer works?

Post by pschoenb »

How do I query the language of a page in 2.0? $page_lang is empty.
Regards,
Patrick
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CMSMS 2.0: $page_lang no longer works?

Post by Rolf »

$page_lang??
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
pschoenb
Forum Members
Forum Members
Posts: 92
Joined: Sun Jul 15, 2007 1:18 pm

Re: CMSMS 2.0: $page_lang no longer works?

Post 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?
Regards,
Patrick
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: CMSMS 2.0: $page_lang no longer works?

Post 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!!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
pschoenb
Forum Members
Forum Members
Posts: 92
Joined: Sun Jul 15, 2007 1:18 pm

Re: CMSMS 2.0: $page_lang no longer works?

Post 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
  1. The per page meta tags are missing in the <head> section.
  2. $page_lang is empty.
Regards,
Patrick
Post Reply

Return to “The Lounge”