eZ Community » Forums » Developer » Switch Language issue
expandshrink

Switch Language issue

Switch Language issue

Monday 14 May 2012 9:46:48 am - 4 replies

Hello,
I have a problem on the switch language operation, I have a mixture of content (EN/FR).
On direct access to a node (with it's url_alias) it works (event if it doesn't have a translation) , the default node translation is returned.
The problem is, when i'am on a node that doesn't have a translation and i choose to switch language , i get a link with a structure like (Mysite/newLangSiteAccess/nodeid) which generate an error (MODULE NOT FOUND).If somebody have already encountered the same issue.
Hicham, Thank's

Tuesday 15 May 2012 10:17:51 am

Hi Hicham,

The language-switch URL looks wrong ( Mysite/newLangSiteAccess/nodeid ). The standard today is a URL of the following form : /switchlanguage/to/<siteaccess_name> . You can find an example of how this is built-in in templates in extension/ezwebin/design/ezwebin/templates/page_header_languages.tpl on a fresh eZ Publish Community Project install (with eZ Website Interface turned-on).

Cheers,

Tuesday 15 May 2012 10:26:25 am

Indeed the link to switch languages send me to the module "/switchlanguage/to/<siteaccess_name>" but the link i get after that is "/<siteaccess_name>/<nodeid>" (only when there is no transaltion for this object !).
I'am suppose to get something like that "/<siteaccess_name>/content/view/full/<nodeid>".
and thank's for the reply blunk.gif Emoticon !
Hicham. 

Tuesday 15 May 2012 11:42:20 am

Ok got it.

It might be a bug, actually. Have you searched for a related report in http://issues.ez.no/ezpublish ?

Cheers,

Tuesday 15 May 2012 3:19:41 pm

Hup , no , but i will right now. 
and thank's again ^^ !
Hicham. 

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu