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

eZ debug

Timing: Jan 30 2025 00:46:29
Script start
Timing: Jan 30 2025 00:46:29
Module start 'content'
Timing: Jan 30 2025 00:46:29
Module end 'content'
Timing: Jan 30 2025 00:46:29
Script end

Main resources:

Total runtime0.1531 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9297180.8359
Module start 'content' 0.00490.0049 768.765697.9922
Module end 'content' 0.00980.1433 866.7578527.0234
Script end 0.1530  1,393.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00301.9880200.0002
Check MTime0.00120.7892200.0001
Mysql Total
Database connection0.00050.298610.0005
Mysqli_queries0.113774.28541410.0008
Looping result0.00110.68891390.0000
Template Total0.143093.410.1430
Template load0.00080.522510.0008
Template processing0.142292.864510.1422
Override
Cache load0.00060.369810.0006
Sytem overhead
Fetch class attribute can translate value0.00070.442810.0007
XML
Image XML parsing0.00020.130710.0002
General
dbfile0.00573.7237200.0003
String conversion0.00000.002030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs