Create multidim Array in template out of a fetch list

Author Message

Björn Dieding@xrow.de

Monday 23 June 2003 9:23:08 pm

My problem is I need a multi dim array that get created some time in the beginning of the template and gets read out again invarious place.

I use a fetch to get the data(text overlays) for the images.

My goal is to create a js tree menu with images.....

Here is some of my code I tried to create this. I hope you get the idea.

{let
imagedir="http://www:92/"
menu=fetch(content,list,hash(parent_node_id,43,class_filter_array,arra(1)))
multi_dim_image_array=array()
}
{section name=Child loop=$menu}
{set
images.$Child:index.img_normal=image(imagefile('design/xrow/images/menu1.jpg'),$Child:item.name|texttoimage('xrow')

images.$Child:index.img_down=image(imagefile('design/xrow/images/menu1_f2.jpg'),$Child:item.name|texttoimage('xrow' )

images.$Child:index.img_over=image(imagefile('design/xrow/images/menu1_f3.jpg'),$Child:item.name|texttoimage('xrow')

}
{/section}
....from now on the the crappy array should be filled with images and strings... Well I don't know how :-) .. Help me .. Please

...now I do some section to read it out again
{section name=Img loop=$images}
{$Img:item.img_over.imagepath}
{/section}

{/let}

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.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 31 2025 01:25:43
Script start
Timing: Jan 31 2025 01:25:43
Module start 'layout'
Timing: Jan 31 2025 01:25:43
Module start 'content'
Timing: Jan 31 2025 01:25:43
Module end 'content'
Timing: Jan 31 2025 01:25:43
Script end

Main resources:

Total runtime0.0247 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.3594151.2266
Module start 'layout' 0.00480.0036 739.5859220.7188
Module start 'content' 0.00840.0149 960.3047997.8359
Module end 'content' 0.02330.0014 1,958.140629.9922
Script end 0.0247  1,988.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.2758140.0002
Check MTime0.00104.1376140.0001
Mysql Total
Database connection0.00093.607710.0009
Mysqli_queries0.00187.448030.0006
Looping result0.00000.048310.0000
Template Total0.00103.910.0010
Template load0.00083.149210.0008
Template processing0.00020.781810.0002
Override
Cache load0.00062.234310.0006
General
dbfile0.00239.464280.0003
String conversion0.00000.031840.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