Question about multilingual url_alias

Author Message

Christian Johansen

Monday 27 October 2008 3:35:47 pm

I'm wondering about how the multilingual url_aliases is supposed to work? It's currently not working as I was expecting.

I have a site with two siteaccesses; mysite_no and mysite_en, which uses norwegian and english language, respectively. I have the following content:

prosjekter/
mitt_prosjekt/
ez_publish/

Which, when translated looks like:

projects/
my_project/
ez_publish/

I'm using host match. The following URLs are working as expected:

http://www.mysite.no/prosjekter
http://www.mysite.no/prosjekter/mitt_prosjekt
http://www.mysite.no/prosjekter/ez_publish

The following is also working, even though I find it strange:
http://www.mysite.no/projects

For the english site, the following is also working, very good:
http://en.mysite.no/projects

However, this is not working:
http://en.mysite.no/projects/my_project
http://en.mysite.no/projects/ez_publish

And, as with the norwegian site, URLs seem to be "leaking":
http://en.mysite.no/prosjekter

When asking for url_alias of translated $node, I get a system URL (ie /content/view/full/xxxx).

So... How can I get the following scenario?

Should work:
http://www.mysite.no/prosjekter
http://www.mysite.no/prosjekter/mitt_prosjekt
http://www.mysite.no/prosjekter/ez_publish
http://en.mysite.no/projects
http://en.mysite.no/projects/my_project
http://en.mysite.no/projects/ez_publish

Should not work:
http://www.mysite.no/projects(/*)
http://en.mysite.no/prosjekter(/*)

$node.url_alias should be "projects/my_project" in english siteaccess an "prosjekter/mitt_prosjekt" in norwegian siteaccess. Possible?

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 15:12:01
Script start
Timing: Jan 18 2025 15:12:01
Module start 'layout'
Timing: Jan 18 2025 15:12:01
Module start 'content'
Timing: Jan 18 2025 15:12:02
Module end 'content'
Timing: Jan 18 2025 15:12:02
Script end

Main resources:

Total runtime1.3932 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.3594152.6250
Module start 'layout' 0.00440.0028 741.984439.4453
Module start 'content' 0.00721.3846 781.4297421.1953
Module end 'content' 1.39180.0014 1,202.62508.1563
Script end 1.3931  1,210.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2068160.0002
Check MTime0.00120.0835160.0001
Mysql Total
Database connection0.00050.038010.0005
Mysqli_queries1.348996.8223460.0293
Looping result0.00040.0308440.0000
Template Total1.364097.920.6820
Template load0.00240.168920.0012
Template processing1.361697.733520.6808
Template load and register function0.00020.017610.0002
states
state_id_array0.00100.074610.0010
state_identifier_array0.00190.134920.0009
Override
Cache load0.00180.1311380.0000
Sytem overhead
Fetch class attribute can translate value0.00060.040510.0006
Fetch class attribute name0.00120.086110.0012
XML
Image XML parsing0.00010.007210.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00070.0490100.0001
String conversion0.00000.000540.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs