fetch problem

Author Message

Felix Laate

Monday 16 June 2003 12:33:43 am

Hi all!

In a page, variant of the infamous pagelayout_section_x, in a column beside the main content, I need to get the contents of a certain class in that particular node printed. i.e. I want to make a list of all objetcs of that class in that node, and print the contents (image and short text) in my column.

This is what I've put in so far:

{section name=Margin loop=fetch(content,list,hash(parent_node_id,$DesignKeys:used.node,class_filter_type,include,class_filter_array,array(9))) show=eq($DesignKeys:used.viewmode,'full')}
¨
{$Margin:item.name}
<img src={"$Margin:item.image"|ezimage} alt="image" border="0" width="100" height="35" />
{$Margin:item.caption}

{delimiter}&uml;
{/delimiter}

{/section}

Only the name of the object is printed..

Any help would be appreciated!

:-) Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

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 18 2025 11:02:19
Script start
Timing: Jan 18 2025 11:02:19
Module start 'layout'
Timing: Jan 18 2025 11:02:19
Module start 'content'
Timing: Jan 18 2025 11:02:20
Module end 'content'
Timing: Jan 18 2025 11:02:20
Script end

Main resources:

Total runtime0.7973 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.9219152.6094
Module start 'layout' 0.00620.0031 741.531339.4141
Module start 'content' 0.00930.7864 780.9453467.9297
Module end 'content' 0.79570.0015 1,248.87508.3516
Script end 0.7972  1,257.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4423160.0002
Check MTime0.00150.1833160.0001
Mysql Total
Database connection0.00130.165210.0013
Mysqli_queries0.751594.2619460.0163
Looping result0.00050.0583440.0000
Template Total0.759695.320.3798
Template load0.00240.306620.0012
Template processing0.757294.969520.3786
Template load and register function0.00010.012410.0001
states
state_id_array0.00070.089110.0007
state_identifier_array0.00210.261920.0010
Override
Cache load0.00190.2374180.0001
Sytem overhead
Fetch class attribute can translate value0.00090.116110.0009
Fetch class attribute name0.00080.095520.0004
XML
Image XML parsing0.00060.069910.0006
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00100.1204160.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs