imported document

Author Message

justin kazadi

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

Maxime Thomas

Wednesday 14 May 2008 11:06:34 pm

Hi Justin,

Try a :


{def $child_node=fetch('content', 'node', hash('node_id', 167))}

You can fin more information here :
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/modules/content/fetch_functions/node

Maxime Thomas
[email protected] | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

justin kazadi

Thursday 15 May 2008 1:42:20 am

Hello maxime thomas,

I have forgot the parenthesis " ) " in my code.
Thanks

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

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