Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Wednesday 03 November 2004 1:51:43 pm - 6 replies
Marko Žmak
Wednesday 03 November 2004 3:02:10 pm
You should specify what you want to display. The Intro, the Title or Body?
If you have a node ($node) you can display his attribute like this:
{attribute_view_gui atribute=$node.object_data_map.intro}
that's for intro. Or you could use something like this:
{$node.object_data_map.title.content}
Check out the documentation for the details, and how to obtain the current node. A useful operator for you is attribute(), check it out in the docs.
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Łukasz Serwatka
Thursday 04 November 2004 1:25:15 am
Hi
I think that u should use {$module_result.node_id} to display node id in pagelayout
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Jack Rackham
Thursday 04 November 2004 4:36:42 am
I have tried the following functions but it's not working.
{$DesignKeys:used.node.object_data_map.title.content}{$DesignKeys:used.object.object_data_map.title.content}
{$module_result.node_id.object_data_map.title.content}
{attribute_view_gui atribute=$module_result.node_id.object_data_map.title}
{attribute_view_gui atribute=$DesignKeys:used.node.object_data_map.title}
{attribute_view_gui atribute=$DesignKeys:used.object.object_data_map.title}
Thursday 04 November 2004 9:12:47 am
In pagelayout
{let current_node=fetch(content,node,hash(node_id,$module_result.node_id))} {$current_node.name} {*current node name*} {attribute_view_gui atribute=$current_node.object.data_map.title} {/let}
i hope this help
Thursday 04 November 2004 2:03:54 pm
Ok it works but how do I display, the intro, body ............I tried to replace title with intro .... but it did not work.
Thursday 04 November 2004 2:41:37 pm
Here is a working code
{let current_node=fetch(content,node,hash(node_id,$module_result.node_id))} {attribute_view_gui attribute=$current_node.data_map.intro} {/let}
If u need body just replace with intro. There was a syntax error in attribute
You must be logged in to post messages in this topic!