Multilanguage site, MatchOrder=host and Switchlanguage eng.1

Author Message

Hugo Sandoval

Tuesday 15 December 2009 5:24:50 am

Hi everybody.

Going in circles. After trying with different solutions in this forums, still the switch between languages don't work. Using eZPublish 4.2.0

This is my (complete damaged after editing too much) override site.ini:

[SiteSettings]
DefaultAccess=esl
SiteList[]
SiteList[]=esl
SiteList[]=eng
SiteList[]=ezwebmin_site_clean_user
SiteList[]=ezwebmin_site_clean_admin
RootNodeDepth=1
SiteName=Accedite
MetaDataArray[author]=XXXXX
MetaDataArray[copyright]=XXXX
MetaDataArray[description]=XXXXXX
MetaDataArray[keywords]=XXXXXX
IndexPage=/content/view/full/2/
DefaultPage=/content/view/full/2
AdditionalLoginFormActionURL=
GMapsKey=XxXxXxX

/* ... */

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=esl
AvailableSiteAccessList[]=eng
AvailableSiteAccessList[]=ezwebin_site_clean_user
AvailableSiteAccessList[]=ezwebin_site_clean_admin
MatchOrder=host
HostMatchMapItems[]=administrador.site.edited;ezwebin_site_clean_admin
#HostMatchMapItems[]=m.site.edited;ezwebin_site_clean_user
HostMatchMapItems[]=esl.1;esl
HostMatchMapItems[]=eng.1;eng
RelatedSiteAccessList[]
RelatedSiteAccessList[]=ezwebin_site_clean_user
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=ezwebin_site_clean_admin

/* ... */

[RegionalSettings]
TranslationSA[]
TranslationSA[esl]=Esl
TranslationSA[eng]=Eng



/* ... */

In site.ini.append.php eng siteacces:

[SiteSettings]
SiteName=Accedite
SiteURL=eng.site.edited
LoginPage=embedded
AdditionalLoginFormActionURL=http://administrador.site.edited/user/login
GMapsKey=XXXXXXXXXX

/* ... */

[SiteAccessSettings]
RequireUserLogin=true
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=ezwebin_site_clean_user
RelatedSiteAccessList[]=ezwebin_site_clean_admin
ShowHiddenNodes=false

/* ... */

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=eng-GB
TextTranslation=enabled

/* ... */

[ContentSettings]
TranslationList=esl-ES

/* ... */

In site.ini.append.php eng siteacces:

[SiteSettings]
SiteName=Accedite
SiteURL=esl.site.edited
LoginPage=embedded
AdditionalLoginFormActionURL=http://administrador.site.edited/user/login
GMapsKey=XXXXX

/* ... */

[SiteAccessSettings]
RequireUserLogin=true
RelatedSiteAccessList[]
RelatedSiteAccessList[]=esl
RelatedSiteAccessList[]=eng
RelatedSiteAccessList[]=ezwebin_site_clean_user
RelatedSiteAccessList[]=ezwebin_site_clean_admin
ShowHiddenNodes=false

/* ... */

[RegionalSettings]
Locale=esl-ES
ContentObjectLocale=esl-ES
ShowUntranslatedObjects=disabled
SiteLanguageList[]
SiteLanguageList[]=esl-ES
TextTranslation=enabled

/* ... */

[ContentSettings]
TranslationList=eng-GB

/* ... */

Now the problem:

- Visit www.site.edited and visualize esl content (that's right).

- Visit eng.site.edited and visualize esl content (that is not right).

- Visit esl.site.edited and visualize esl content (that's right).

Click on >>Esl or >>Eng doesn't change anything after reload the page.

The caches are disabled at all.

...

.·. .·. .·. .·. .·. .·. .·.
http://www.softwarelibre.com.ve/

Olaf Fichtner

Wednesday 09 June 2010 10:08:16 am

Hugo, did you ever solve this? Otherwise we could do a few rounds together, less boring that way. I am not sure how similar my problem is, because I got really confused after reading all the posts and articles that were supposed to enlighten me.

I did think for example that with host SA, languages would be indicated in the form of subdirectories, but then I see all those posts mentioning different site names for different languages - or not? I would love to see a working example of a single site with multiple languages and host site access - because the installer can not do that properly and I can not find clear and simple docs stating how it is supposed to be done...

So, did you get it fixed in the end?

Hugo Sandoval

Wednesday 09 June 2010 12:20:01 pm

No, this issue still exists. The site is on line and working without problem, except that if you login on esl and wanna switch to eng then you must sign in again and vice versa. BTW i cannot attend this problem until Monday, because must go out of the city, but we can try to solve this if you you want.

Best regards.

.·. .·. .·. .·. .·. .·. .·.
http://www.softwarelibre.com.ve/

Olaf Fichtner

Wednesday 09 June 2010 8:39:23 pm

I am not yet concerned about login, as I would usually be the only one doing so, but if the site you talk about is the one in your signature, then we may have common problems, and it all boils down to multilanguage on host site access.

I have two sites causing different trouble: One was installed as URI site access and worked fine as such, but I needed host access, so I made a dummy host SA installation to compare settings. The dummy site behaves like your softwarelibre: If I click on a language link, it goes to (for example) "eng.1" as FQDN, and so far I was not able to convince it to go elsewhere.

The other site, converted from URI SA, will go to the software's physical location (http://domain.name/folder/folder/ezPublish), and does not find any content there. The interesting thing is, although I changed settings in site.ini.append.php and the site itself behaves fine, the language switcher still seems to use the URI method...

That's my situation...

Olaf Fichtner

Friday 11 June 2010 10:11:22 pm

I found the source for the "eng.1" problem: Open /settings/siteaccess/eng/site.ini.append.php and comment the SiteURL setting out or delete it... Unfortunately, language switching still does not work (at least here) after this...

Olaf Fichtner

Saturday 12 June 2010 8:27:06 am

Hugo, I am not sure if this is of use for you, but I finally found the solution to my problems and posted it here:

http://share.ez.no/forums/setup-design/howto-host-site-access-multilanguage-the-ez-way

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