Getting the node id from an object id

Author Message

Nicolas R

Friday 20 February 2009 5:02:21 am

Hello,

How can I get the node id by an object id ?
Thank you

André R.

Friday 20 February 2009 5:04:57 am

main_node_id / assigned_nodes:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/objects/ezcontentobject

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Nicolas R

Friday 20 February 2009 6:31:23 am

The main node id is not set ! Is it normal ?

André R.

Friday 20 February 2009 7:43:25 am

Depends, does it have any assigned nodes at all?
If not then it is ok, it means the object doesn't have any placement, but if it has nodes then it is a inconsistency* and you can fix it by setting main node in admin.

* One such where discovered in swap node code recently and fixed in 4.0.4 / 4.1Beta1

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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:10:11
Script start
Timing: Jan 18 2025 15:10:11
Module start 'layout'
Timing: Jan 18 2025 15:10:11
Module start 'content'
Timing: Jan 18 2025 15:10:11
Module end 'content'
Timing: Jan 18 2025 15:10:11
Script end

Main resources:

Total runtime0.7227 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.1328152.6250
Module start 'layout' 0.00470.0029 741.757839.4453
Module start 'content' 0.00760.7137 781.2031542.2109
Module end 'content' 0.72130.0014 1,323.414112.1563
Script end 0.7227  1,335.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4856160.0002
Check MTime0.00160.2255160.0001
Mysql Total
Database connection0.00070.095910.0007
Mysqli_queries0.675593.4602600.0113
Looping result0.00050.0711580.0000
Template Total0.693495.920.3467
Template load0.00200.270920.0010
Template processing0.691495.664320.3457
Template load and register function0.00020.028610.0002
states
state_id_array0.00090.131010.0009
state_identifier_array0.00100.139520.0005
Override
Cache load0.00150.2118170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086820.0003
Fetch class attribute name0.00100.142750.0002
XML
Image XML parsing0.00060.085520.0003
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00070.1036170.0000
String conversion0.00000.001340.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs