urlAlias() and setCurrentLanguage

Author Message

Julien JOSEPH-AGATHE

Thursday 10 September 2009 10:19:38 am

Hi,

I have an object in different languages. eng-US is the default and fre-FR in second.

I try to get the url_alias of the node of my object in a specific language.

But the urlAlias() always return the default language.

Simple exemple:

$oNode = eZContentObjectTreeNode::fetch(15169, 'fre-FR');
echo $oNode->urlAlias();

it didn't work.

Someone already has this problem ?

Thanks

PS: Sorry for my english

Andy Caiger

Monday 28 December 2009 6:13:32 am

I'm not sure if I have the same problem or not. All I want to do is have the same URLs in all the different languages, basically turn off multilanguage URL aliases. Is there a setting somewhere that will do this? Thanks!

EAB - Integrated Internet Success
Offices in England, France & China.
http://www.eab.co.uk http://www.eab-china.com http://www.eab-france.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 15:14:40
Script start
Timing: Jan 18 2025 15:14:40
Module start 'layout'
Timing: Jan 18 2025 15:14:40
Module start 'content'
Timing: Jan 18 2025 15:14:41
Module end 'content'
Timing: Jan 18 2025 15:14:41
Script end

Main resources:

Total runtime0.7507 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.0046 587.9141152.6250
Module start 'layout' 0.00460.0022 740.539139.4453
Module start 'content' 0.00680.7426 779.9844521.3359
Module end 'content' 0.74940.0013 1,301.32038.3125
Script end 0.7507  1,309.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3876160.0002
Check MTime0.00120.1636160.0001
Mysql Total
Database connection0.00080.106410.0008
Mysqli_queries0.713395.0142540.0132
Looping result0.00040.0581520.0000
Template Total0.725896.720.3629
Template load0.00180.237720.0009
Template processing0.724096.437920.3620
Template load and register function0.00010.011710.0001
states
state_id_array0.00070.089310.0007
state_identifier_array0.00060.084920.0003
Override
Cache load0.00140.1907170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.061420.0002
Fetch class attribute name0.00070.087230.0002
XML
Image XML parsing0.00050.063420.0002
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00070.0978160.0000
String conversion0.00000.000640.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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/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: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs