MLE and News Module

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
philip142au
New Member
New Member
Posts: 2
Joined: Sun Aug 10, 2008 4:19 am

MLE and News Module

Post by philip142au »

Hi, I installed and got running the MLE (Multi-Language Extension).

However it looks like the news module is not working under MLE? Is this true?

Does anyone know how I can get news as MLE?

Best regards, Philip
alby

Re: MLE and News Module

Post by alby »

philip142au wrote: However it looks like the news module is not working under MLE? Is this true?

Does anyone know how I can get news as MLE?
Have you read Howto?

Alby
philip142au
New Member
New Member
Posts: 2
Joined: Sun Aug 10, 2008 4:19 am

Re: MLE and News Module

Post by philip142au »

Hi Alby, yes I read (after posting I found the news part) and did that - however, its not working for my news unless I use a English character at the start of the TITLE for the news article.

My site is in English and Chinese traditional.

So for the Chinese, if the title is totally Chinese, its not happening.

You can see the problem at http://www.orsa-studio.com/client/heifer/
Change the website language on top right to Chinese.
Click on the news article where title starts with "a" character and it works.
For article without any English character, it fails.

Regards, Philip
alby

Re: MLE and News Module

Post by alby »

philip142au wrote: My site is in English and Chinese traditional.

So for the Chinese, if the title is totally Chinese, its not happening.

You can see the problem at http://www.orsa-studio.com/client/heifer/
Change the website language on top right to Chinese.
Click on the news article where title starts with "a" character and it works.
For article without any English character, it fails.
Use a extra field for alias your title

Alby
justin16l
New Member
New Member
Posts: 5
Joined: Mon Jun 14, 2010 7:48 pm

Re: MLE and News Module

Post by justin16l »

I'm also having a problem with this. {$lang}, if placed in the body of a template, returns the language properly, such as 'en_US'. However, if I put lang inside of the News module, such as {news category="Category Name - $lang" number="1" moretext="more info" detailpage="news"} it just returns 'Array'. Any idea of what I'm doing wrong? I'm on MLE 1.6.7.
justin16l
New Member
New Member
Posts: 5
Joined: Mon Jun 14, 2010 7:48 pm

Re: MLE and News Module

Post by justin16l »

I just figured this one out. I couldn't use $lang inside of a tag unless it was assigned to another variable for some reason. This only worked when done within the html 'body' (within 'header' failed): {capture assign='langvar'}{$lang}{/capture} , then I could load it into the news module, and it worked: {news category="Cat Name-$langvar" number="1" moretext="more info" detailpage="news"} .
Last edited by justin16l on Fri Jun 18, 2010 4:19 pm, edited 1 time in total.
alby

Re: MLE and News Module

Post by alby »

justin16l wrote: I'm also having a problem with this. {$lang}, if placed in the body of a template, returns the language properly, such as 'en_US'. However, if I put lang inside of the News module, such as {news category="Category Name - $lang" number="1" moretext="more info" detailpage="news"} it just returns 'Array'. Any idea of what I'm doing wrong? I'm on MLE 1.6.7.
I have not this behaviour.
$lang works in template header (e.g. {title} | {sitename} | {$lang}) and in template body with:
{news number="3" detailpage="news" category="General-$lang" lang="$lang"}
(not work but if I rename General in General-en_US work well)

Have you checked in Admin Global settings?

Alby
Locked

Return to “[locked] CMSMS MLE fork”