How to check the node that haven't node_id?

Author Message

Daniele Nocentini

Monday 13 June 2005 7:38:32 am

When I submit feedback form, the output is:
templates\content\collectedinfo\form.tpl

This is not a node and this code not work:

{section show=$node.node_id|eq(59)}id="active"{/section}

How can I test if the feedback form output is display?

Antica Bottega Digitale srl
http://www.abd.it

paolo barbieri

Monday 13 June 2005 1:56:52 pm

Hi daniele,
probably you are referring to an object, not a proper node.
In this case node_id doesn't work normally.
Try object_id (or contentobject_id) instead.

Doing a "show" in most cases help to find the correct sintax:

{$__YOUR-OBJECT-OR-NODE__|attribute(show)}

ciao

<i>"Vinum bibant homines, animalia cetera fontes..."</i>

Daniele Nocentini

Tuesday 14 June 2005 2:22:41 am

Hi paolo, thanks for your answer!

nnnnn maybe you don't understand where is the problem.
For example, if you are in the advanced search template you aren't in any node because this is the ezpublish's funcinality, my question is how can I check if I'm in this "no node" templates???

PS: I'm very happy that there are an Italian developer!

Antica Bottega Digitale srl
http://www.abd.it

Kristian Hole

Tuesday 14 June 2005 1:29:27 pm

To check if the variable $node exists, you do something like this:

{section show=is_set($node)|not()}
 $node is not set
{/section}

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

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

Main resources:

Total runtime0.7687 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.0469152.6406
Module start 'layout' 0.00690.0034 740.687539.4766
Module start 'content' 0.01030.7572 780.1641595.9219
Module end 'content' 0.76750.0012 1,376.085912.1250
Script end 0.7687  1,388.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4303160.0002
Check MTime0.00140.1774160.0001
Mysql Total
Database connection0.00110.136910.0011
Mysqli_queries0.711992.6065620.0115
Looping result0.00050.0712600.0000
Template Total0.733295.420.3666
Template load0.00220.288920.0011
Template processing0.731095.092820.3655
Template load and register function0.00010.011510.0001
states
state_id_array0.00080.099810.0008
state_identifier_array0.00180.238620.0009
Override
Cache load0.00180.2362280.0001
Sytem overhead
Fetch class attribute can translate value0.00050.068330.0002
Fetch class attribute name0.00110.146670.0002
XML
Image XML parsing0.00300.386630.0010
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00240.3161280.0001
String conversion0.00000.001240.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs