Multiple language with MatchOrder=host ?

Author Message

Jeremy B.

Tuesday 16 February 2010 2:12:36 am

Hi !

I'm in trouble with multi sites / multi lang configuration :(

My configuration is like :

MatchOrder=host

HostMatchType=map

HostMatchMapItems[]

HostMatchMapItems[]=mysite.com;com_fre

HostMatchMapItems[]=mysite.ch;ch_fre

But for both "mysite.com" and "mysite.ch", I need to have multiple languages.

I tried for example :

mysite.ch/switchlanguageto/ch_ger

But my siteaccess is still ch_fre. I guess that the mecanism always match the HostMatchMapItems config.

Any clue about how I could have multiple languages with MatchOrder=host ?

Thank you very much in advance :)

Theodoros Papageorgiou

Tuesday 16 February 2010 1:43:27 pm

You can use subdomains:

HostMatchMapItems[]=fre.mysite.com;com_fre
HostMatchMapItems[]=ch.mysite.com;ch_fre
HostMatchMapItems[]=ger.mysite.com;com_ger

WEBWiZ
Web Development
http://www.webwiz.gr

Jeremy B.

Wednesday 17 February 2010 12:25:14 am

Indeed Theodoros, thanks for your reply :)

But I finnaly gave a try to this patch :

http://issues.ez.no/IssueView.php?Id=15359&activeItem=3

and it seems to work just fine !

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

eZ debug

Timing: Jan 18 2025 14:55:34
Script start
Timing: Jan 18 2025 14:55:34
Module start 'layout'
Timing: Jan 18 2025 14:55:34
Module start 'content'
Timing: Jan 18 2025 14:55:35
Module end 'content'
Timing: Jan 18 2025 14:55:35
Script end

Main resources:

Total runtime1.2265 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.0313152.6406
Module start 'layout' 0.00480.0023 740.671939.4766
Module start 'content' 0.00711.2180 780.1484534.6641
Module end 'content' 1.22510.0013 1,314.81258.1250
Script end 1.2265  1,322.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2424160.0002
Check MTime0.00120.0985160.0001
Mysql Total
Database connection0.00060.053010.0006
Mysqli_queries1.174495.7551580.0202
Looping result0.00060.0491560.0000
Template Total1.196797.620.5984
Template load0.00200.163820.0010
Template processing1.194797.405020.5973
Template load and register function0.00020.015110.0002
states
state_id_array0.00180.147610.0018
state_identifier_array0.00190.153820.0009
Override
Cache load0.00160.1338300.0001
Sytem overhead
Fetch class attribute can translate value0.00080.063720.0004
Fetch class attribute name0.00190.152640.0005
XML
Image XML parsing0.00280.226320.0014
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00260.2113150.0002
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs