interlinking language versions

Author Message

Don Blogger

Saturday 30 January 2010 1:51:03 am

Hi,

I'm running a website in three language versions and would like to interlink, e. g. the German Version with the English one.

How can I, based on having a content node in German, get the alias of it's English counterpart?

e. g.:

German node would have the alias /info/kontakt, English node should have /info/contact as an alias.

Thanks in advance for your help!

DB

Hakim Bouras

Monday 01 February 2010 1:51:49 am

Hi,

Did you try to fetch the node specifying the language?

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/content/fetch_functions/node

Once you have the node, you should get the alias you are looking for.

Hakim

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

Main resources:

Total runtime0.6761 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 589.0234152.6250
Module start 'layout' 0.00830.0027 741.648439.4453
Module start 'content' 0.01100.6637 781.0938489.2031
Module end 'content' 0.67470.0013 1,270.29698.1641
Script end 0.6760  1,278.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5553160.0002
Check MTime0.00130.1971160.0001
Mysql Total
Database connection0.00180.262410.0018
Mysqli_queries0.623292.1742540.0115
Looping result0.00060.0918520.0000
Template Total0.637794.320.3189
Template load0.00300.446420.0015
Template processing0.634793.875120.3173
Template load and register function0.00020.029610.0002
states
state_id_array0.00140.214310.0014
state_identifier_array0.00120.183220.0006
Override
Cache load0.00240.3581170.0001
Sytem overhead
Fetch class attribute can translate value0.00100.150020.0005
Fetch class attribute name0.00150.222630.0005
XML
Image XML parsing0.00080.117120.0004
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00270.3999160.0002
String conversion0.00000.001640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs