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
maxime.thomas@wascou.org | 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.

eZ debug

Timing: Jan 20 2025 17:41:56
Script start
Timing: Jan 20 2025 17:41:56
Module start 'layout'
Timing: Jan 20 2025 17:41:56
Module start 'content'
Timing: Jan 20 2025 17:41:56
Module end 'content'
Timing: Jan 20 2025 17:41:56
Script end

Main resources:

Total runtime0.0187 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 592.9922151.1953
Module start 'layout' 0.00730.0028 744.187536.6328
Module start 'content' 0.01010.0069 780.820394.2500
Module end 'content' 0.01700.0017 875.070333.9922
Script end 0.0187  909.0625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.6115140.0002
Check MTime0.00115.8888140.0001
Mysql Total
Database connection0.00189.519610.0018
Mysqli_queries0.003418.141430.0011
Looping result0.00000.075110.0000
Template Total0.00126.610.0012
Template load0.00095.041910.0009
Template processing0.00031.518010.0003
Override
Cache load0.00073.697110.0007
General
dbfile0.00179.062480.0002
String conversion0.00000.049740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs