'Standard' template variables ?

Author Message

Clemens T

Tuesday 31 May 2005 4:46:22 am

I'm currently developing a module, with it's own design folder and it's own templates. In the templates I'm fetching data from the nodes I want to display.

Now, the problem is that all the following statements return nothing (they don't have a value):

{$module_result.content|attribute(show, 1)}
{$node|attribute(show, 1)}
{$node.data_map|attribute(show, 1)}
{$node.object|attribute(show, 1)}
{$DesignKeys:used|attribute(show, 1)}

The problem is I need some of these variables (<b>$node.parent_node_id</b> is the best example), but I can't use them.

How can I make these variables available in my module template?
Thanks a lot
Clemens

Bernhard Reiter

Tuesday 31 May 2005 5:45:12 am

You need to define these variables yourself in your module if you need them.

Clemens T

Tuesday 31 May 2005 5:49:02 am

OK, but I'm using an extra fetch now in my template:

(partial content
...
{let node=fetch( 'content', 'node', hash(node_id, $my_node_id))}
...

$my_node_id has been passed as a view_parameter by the url
Thanks for the reply.
Greets,
Clemens

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.