Two languages for one siteaccess -> SOLVED

Author Message

Robert Dude

Monday 15 November 2010 1:03:16 am

Hi all,
I am developing a website wich will have two language, but each language will have differents content. For that, I created two folder in the root of the admin, one for french and one for english, and I set the language of each folder.
For the moment, the operator i18n don't check the language of the object, I tested a translation in the folder template and it's only on french, the default language of the siteaccess.
Wich solution can I use? I am desperate...
Thank you.
Bob

Gaetano Giunta

Monday 15 November 2010 1:16:23 am

Any reason for not creating separate siteaccesses? Note that you can create two siteaccesses even if you have two separate content subtrees.

Principal Consultant International Business
Member of the Community Project Board

Robert Dude

Monday 15 November 2010 1:25:34 am

Hi !

Thank you for this speedy response, impressive!

"Note that you can create two siteaccesses even if you have two separate content subtrees."

OMG is it possible!? With the SiteAccess MatchOrder Host? Like www.mydomain.com/fr for SiteAccess fr / fr folder subtree and www.mydomain.com/nl for SiteAccess en / en folder subtree?

What is this magic solution? Thank you very much.

Gaetano Giunta

Monday 15 November 2010 3:33:28 am

I am not a grand wizard in SiteAccess config, but you could try until you get it working (or hope someone else chimes in in this thread):

- the easy route: create a new vhost: fr.mydomain.com

- the other way: use MatchOrder=uri;host

NB: other settings you might play with can make the '/nl' '/fr' disappear from your urls and breadcrumbs, so that each siteaccess looks like there is only its own content subtree. There are a few of them: PathPrefix, IndexPage, DefaultPage are the ones off the top of my head in site.ini.

Principal Consultant International Business
Member of the Community Project Board

Robert Dude

Tuesday 16 November 2010 1:25:52 am

Thank you.

"create a new vhost: fr.mydomain.com" I don't want that for SEO purpose.

"use MatchOrder=uri;host" I tested that without result. I will test again and tell you if it works.

I realy believed that have siteaccess for subtree wasn't possible...

Thank you again.

Bob

Robert Dude

Tuesday 16 November 2010 5:28:53 am

Thank you very much Gaetano, I resolved the problem with:

In settings/override/site.ini.append

MatchOrder=host_uri
HostUriMatchMapItems[]=admin.mysite.com;;ezflow_site_admin
HostUriMatchMapItems[]=www.mysite.com;fr;fre
HostUriMatchMapItems[]=www.mysite.com;en;eng

In settings/siteaccess/fre

IndexPage=/content/view/full/111/ # the node id of the folder fr
RootNodeDepth=2

Same in settings/siteaccess/eng with the node id of the folder en

THANK YOU !!!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.