Forums / Setup & design / Multi-language / URL aliases

Multi-language / URL aliases

Author Message

Michael Kress

Saturday 12 January 2008 3:37:02 pm

Hi, according to this page:
http://ez.no/doc/ez_publish/technical_manual/4_0/features/multi_language_support_for_url_aliases
I'd like to use urls of this form:

http://www.example.com/en/Company
http://www.example.com/en/Compagnie

How can I do this with ez publish?
I tried to set HostMatchMapItems in ./settings/override/site.ini.append.php like this but I didn't succeed:

HostMatchMapItems[]
HostMatchMapItems[]=admin.example.com;ezwebin_site_admin
HostMatchMapItems[]=www.example.com;ezwebin_site_user
HostMatchMapItems[]=www.example.com/de;ger
HostMatchMapItems[]=www.example.com/en;eng

I'm using version 4.0 under centos 5.1 (managed by ispconfig).
Thanks - Michael

Piotrek Karaƛ

Saturday 12 January 2008 10:32:32 pm

Hello Michael,

I don't think 'www.example.com/de' can be considered a host. Also, with the exception of some advanced matching techniques, you would need a clear siteaccess separation:

http://www.example.com/Company
http://www.example.de/Compagnie

or

http://www.example.com/en/Company
http://www.example.com/de/Compagnie

Then, each siteaccess would need a different default language set, to choose proper translation.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/siteaccesssettings

Hope this helps a bit.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Michael Kress

Sunday 13 January 2008 3:52:03 am

Could you/someone give me a concrete example, please? I _was_ playing with the SiteAccessSettings section, but unfortunately I ended up in a kernel error (view doesn't exist). I also recreated all the aliases before by issuing

php bin/php/updateniceurls.php

Greg McAvoy-Jensen

Sunday 13 January 2008 7:59:54 am

It seems to me you might actually be looking for the uri method rather than host. If I were trying to do it, here's what I'd do to use:

http://www.example.com/en/Company
http://www.example.com/en/Compagnie

1. In the [SiteAccessSettings] of settings/override/site.ini.append.php,
MatchOrder=uri
(and comment out (with #) your HostMatchMapItems)

2. In the [RegionalSettings] of each settings/siteaccess/your_site_accesses, set these in the correct order (varies by site access):
SiteLanguageList[]
SiteLanguageList[]=eng-GB
SiteLanguageList[]=fre-FR
etc.--whatever your languages are

3. Rename your site access from eng to en if that's the way you'd like it displayed, and similarly for any other public siteaccesses.

4. Set up your translations for each page.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Andy Caiger

Monday 28 December 2009 6:15:02 am

I want to do is have the same URLs in all the different languages, basically turn off multilanguage URL aliases, or (to put it another way) force all siteaccesses to show the URL aliases for the main language. Is there a setting somewhere that will do this? Thanks!

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.com