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.