Multilingual url alias problem

Author Message

luis muñoz

Friday 16 November 2007 1:30:05 am

Hi,

I'm trying to make links between diferent languages of the same site. As 3.10 translates urls i cannot use the language/node.urlalias|ezurl trick i used before. Using language/content/view/full/XXX isn't a valid solution.

I've seen it is done in the admin, design/admin/templates/content/urlalias.tpl but i can't see where does $elements on line 206 comes from. Looks like it contains all the translations for the node, which is exactly what i need.

Does any one know how can i recreate that variable in my templates? If not, any idea on how to make friendly links between languages would be apreciated.

Thanks,

Luis Muñoz

Xavier Dutoit

Saturday 17 November 2007 1:08:30 am

Have a look there

http://ez.no/developer/forum/setup_design/language_switcher_in_3_10

http://www.sydesy.com

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 18:27:37
Script start
Timing: Jan 18 2025 18:27:37
Module start 'layout'
Timing: Jan 18 2025 18:27:37
Module start 'content'
Timing: Jan 18 2025 18:27:38
Module end 'content'
Timing: Jan 18 2025 18:27:38
Script end

Main resources:

Total runtime0.6731 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.0048 587.9141152.6250
Module start 'layout' 0.00480.0027 740.539139.4453
Module start 'content' 0.00750.6642 779.9844518.1484
Module end 'content' 0.67180.0013 1,298.13288.1641
Script end 0.6730  1,306.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4527160.0002
Check MTime0.00130.1919160.0001
Mysql Total
Database connection0.00060.092110.0006
Mysqli_queries0.634194.2165540.0117
Looping result0.00040.0651520.0000
Template Total0.645996.020.3229
Template load0.00200.291420.0010
Template processing0.643995.664420.3219
Template load and register function0.00010.021110.0001
states
state_id_array0.00080.115010.0008
state_identifier_array0.00060.085920.0003
Override
Cache load0.00160.2366130.0001
Sytem overhead
Fetch class attribute can translate value0.00070.098120.0003
Fetch class attribute name0.00090.129130.0003
XML
Image XML parsing0.00050.079720.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00070.1018160.0000
String conversion0.00000.001140.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