Using node_path parameter to fetch node

Author Message

Lida Popelo

Thursday 30 September 2004 10:09:49 am

Hi All.

in documentation i found that i can fetch node using node_path

fetch( 'content', 'node',
       hash( [ 'node_id', id, ]
             [ 'node_path', path ] ) )

But no examples i found how to do it.

Suppose i want fetch node ezpublish/articles/article1
what string i need to pass as a 'node_path' parameter ?

Frederik Holljen

Thursday 30 September 2004 11:57:44 pm

You can use a full URL or a system URL. So try something like
fetch( 'content', 'node', hash( 'node_path', 'content/view/full/2' ) )

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 22:17:48
Script start
Timing: Jan 18 2025 22:17:48
Module start 'layout'
Timing: Jan 18 2025 22:17:48
Module start 'content'
Timing: Jan 18 2025 22:17:48
Module end 'content'
Timing: Jan 18 2025 22:17:48
Script end

Main resources:

Total runtime0.6361 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.0050 588.0313152.6406
Module start 'layout' 0.00500.0050 740.671939.4766
Module start 'content' 0.00990.6248 780.1484494.6328
Module end 'content' 0.63470.0013 1,274.78138.1406
Script end 0.6360  1,282.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4996160.0002
Check MTime0.00130.2017160.0001
Mysql Total
Database connection0.00090.140110.0009
Mysqli_queries0.594993.5261540.0110
Looping result0.00050.0765520.0000
Template Total0.603394.820.3017
Template load0.00180.284520.0009
Template processing0.601594.561520.3007
Template load and register function0.00010.022810.0001
states
state_id_array0.00110.175310.0011
state_identifier_array0.00080.132720.0004
Override
Cache load0.00140.2260130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.094520.0003
Fetch class attribute name0.00090.146130.0003
XML
Image XML parsing0.00060.093220.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00160.2460160.0001
String conversion0.00000.001540.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
4content/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
2content/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: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs