Share » Forums » Setup & design » How to check the node that haven't...

How to check the node that haven't node_id?

How to check the node that haven't node_id?

Monday 13 June 2005 7:38:32 am - 3 replies

Modified on Monday 13 June 2005 7:39:23 am by Daniele Nocentini

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu