• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Redirecting to DEFAULT_LANG if no content
PostPosted: Wed Oct 01, 2008 2:21 pm 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
Hey!

I have the latest version of MLE installed.

I followed your instructions here to redirect to the DEFAULT_LANG if the page content does not exist for a language:
http://forum.cmsmadesimple.org/index.ph ... l#msg99796

My default language is en_US. If French content for a page is empty, I want redirect to the DEFAULT_LANG (en_US) page /index.php?page=our-services&hl=en_US page.

The problem: the redirect does not work. The URL does not change to en_US, but remains as /index.php?page=our-services&hl=fr_FR.

On the French page, the en_US content is displayed, but I do not want that. I want the browser to redirect to the /index.php?page=our-services&hl=en_US page.

Any ideas on how to do that?

Thank you!
Simon


Top
 Profile  
 
 Post subject: Re: Redirecting to DEFAULT_LANG if no content
PostPosted: Wed Oct 01, 2008 9:21 pm 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4814
Location: Ferrara, Italy
simon_a wrote:
I followed your instructions here to redirect to the DEFAULT_LANG if the page content does not exist for a language:
http://forum.cmsmadesimple.org/index.ph ... l#msg99796


View this topic, but I have verify a bug that stop UDT to work well ...

Alby

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
 Post subject: Re: Redirecting to DEFAULT_LANG if no content
PostPosted: Thu Oct 02, 2008 8:31 am 
Offline
Forum Members
Forum Members

Joined: Wed Oct 01, 2008 8:42 am
Posts: 26
Thanks Alby, yes it looks like that's the bug. The $maincontent is not empty, and therefore the redirect doesn't work.

Simon


Top
 Profile  
 
 Post subject: Re: Redirecting to DEFAULT_LANG if no content
PostPosted: Thu Oct 02, 2008 9:55 am 
Offline
Support Guru
Support Guru
User avatar

Joined: Mon Jul 04, 2005 5:12 pm
Posts: 4814
Location: Ferrara, Italy
simon_a wrote:
Thanks Alby, yes it looks like that's the bug. The $maincontent is not empty, and therefore the redirect doesn't work.


Infact, I find a bug for default_lang_fallback disabled
In SVN there is also:

- switch display langs ready ONLY (if menu text exist for that lang)
- add nocurrent param (no display current lang in switch)

Alby

_________________
CMSMS Support Team
Italian Admin and Moderator

Plugins: Geolocate hostip, Multiple random image, Image rotator (beta), Content Pagination
Modules: ForumMadeSimple (Howto), TranslationManager
Multilingual: MLE is not CMSMS


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner