trouble with language switcher and 3-language setup

Author Message

Don Blogger

Wednesday 30 December 2009 12:12:15 pm

Hi,

I've set up three site accesses for German, English Spanish (de, en, es) - the setup is via URLs, which means domain.com/de points to the German, domain.com/en to the English, etc.

My match settins are as follows:

MatchOrder=uri;host;
HostMatchMapItems[]=admin.domain.com;ezwebin_site_clean_admin
HostMatchMapItems[]=domain.com;es
URIMatchType=map
URIMatchMapItems[]=es;es
URIMatchMapItems[]=de;de
URIMatchMapItems[]=en;en

The initial match setting sets the Spanish siteaccess as the default siteaccess.

Switching between languages with the default flag template works perfectly, except that when switching to Spanish, I'm forwarded to domain.com/es in contrary to the expected domain.com.

Is there a way to manipulate the language switcher having it leave out the language directory for Spanish?

Thank you very much in advance and have a great New Year!

DB

Robin Muilwijk

Friday 08 January 2010 1:39:49 am

Hi,

Read the following article where it is explained how to remove the language part for the default siteaccess; http://share.ez.no/articles/ez-publish/how-to-configure-an-ez-publish-site/(page)/3

Also make sure to read page 5, where Peter explains how to adjust the language urls, it is at the bottom of page 5.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

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 11:16:31
Script start
Timing: Jan 18 2025 11:16:31
Module start 'layout'
Timing: Jan 18 2025 11:16:31
Module start 'content'
Timing: Jan 18 2025 11:16:31
Module end 'content'
Timing: Jan 18 2025 11:16:31
Script end

Main resources:

Total runtime0.0197 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0391152.6406
Module start 'layout' 0.00630.0037 740.679739.4922
Module start 'content' 0.01000.0073 780.171989.4609
Module end 'content' 0.01730.0023 869.632830.3047
Script end 0.0196  899.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.4860140.0002
Check MTime0.00115.5589140.0001
Mysql Total
Database connection0.00104.915910.0010
Mysqli_queries0.003517.615830.0012
Looping result0.00000.106810.0000
Template Total0.00189.410.0018
Template load0.00094.590810.0009
Template processing0.00094.758210.0009
Override
Cache load0.00063.241710.0006
General
dbfile0.002110.461580.0003
String conversion0.00000.051040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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