Tuesday 13 May 2008 8:16:31 am
Hello all,
i have imported an open office documen in a frontpage( his id=160).the id of the imported document is 167. When i write this code:" {def $noeud = fetch ( 'content' , 'node' ,hash(node_id,167)}
{$noeud.object.data_map.intro.content.output.output_text}
{$noeud.object.data_map.body.content.output.output_text} {$undef $noeud} nothings is displayed. I don't know if it is not possible to displayed the content of a imported object? but when i write this code:" {def $noeud = fetch ( 'content' , 'list' ,hash(parent_node_id,160)}
{foreach $noeud as $nod}
{if $nod.node_id|eq(167)}
<a href={$nod.url_alias}>{$nod.name}</a>
{$nod.object.data_map.intro.content.output.output_text}<br/> {$nod.object.data_map.body.content.output.output_text}<br/>
{else}
{/if}
{/foreach} {$undef $noeud} " the content are displayed. I would like to know if it is not possible to access to the son without passing through the parent (when we work with the imported document )? Thanks in advance.
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
Albert Einstein
|