Get the node from the uri ?

Author Message

Jacques Feix

Friday 27 April 2007 1:20:15 am

How can I get a node when I know its URI ?

thx, Jacques

Fabien Mas

Friday 27 April 2007 1:29:36 am

try this :

$node = eZContentObjectTreeNode::fetchByPath($uri);

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 19 2025 03:21:37
Script start
Timing: Jan 19 2025 03:21:37
Module start 'layout'
Timing: Jan 19 2025 03:21:37
Module start 'content'
Timing: Jan 19 2025 03:21:37
Module end 'content'
Timing: Jan 19 2025 03:21:37
Script end

Main resources:

Total runtime0.7756 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.0054 590.2734152.6250
Module start 'layout' 0.00540.0028 742.898439.4453
Module start 'content' 0.00820.7658 782.3438451.0703
Module end 'content' 0.77400.0015 1,233.41418.1641
Script end 0.7755  1,241.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4082160.0002
Check MTime0.00130.1704160.0001
Mysql Total
Database connection0.00080.107410.0008
Mysqli_queries0.738195.1706540.0137
Looping result0.00050.0625520.0000
Template Total0.743295.820.3716
Template load0.00200.252120.0010
Template processing0.741295.571320.3706
Template load and register function0.00020.020810.0002
states
state_id_array0.00100.126610.0010
state_identifier_array0.00080.109320.0004
Override
Cache load0.00160.203380.0002
Sytem overhead
Fetch class attribute can translate value0.00050.063120.0002
Fetch class attribute name0.00110.135920.0005
XML
Image XML parsing0.00020.030420.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00130.1708100.0001
String conversion0.00000.001040.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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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