image object

Author Message

Matthew Rat

Wednesday 09 April 2003 10:53:17 am

I would liek to know how to take the foloowing scenario and show the image in the page. Please see description below.

Say I have a folder tree in admin interface like:
Static
Static/Header
Static/Footer

And inside the Static/Header/ I have an image object that I added.
So: Static/Header/MyImage

In my template, I want to:

1. Seek out the image in "Static/Header" with priority of 1.
2. Display image on page.

My problem is that I can get the item returned via fetch but cannot figure out how to render the image object to the page (i.e. get a filename from it so I can display using standard "<img src=" style-tags).

Please help!
Thanks,
Matthew Ray

Mark Beck

Thursday 10 April 2003 8:45:50 am

I too am looking for an answer to this question. Here is the fetch code I have and I am looking for the code to display the image and caption:

{let test=fetch('content',object,hash(object_id,250))}
{display code...}
{/let}

I know I have the proper obect because I can echo the details to the screen.

Thank you in advance,
Mark

James Ward

Tuesday 06 May 2003 11:23:37 pm

I'm experiencing the same problem. Bumpty-bump. Lets get this solved.

working at www.wardnet.com
blogging at www.jamesward.ca

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 30 2025 16:40:29
Script start
Timing: Jan 30 2025 16:40:29
Module start 'layout'
Timing: Jan 30 2025 16:40:29
Module start 'content'
Timing: Jan 30 2025 16:40:31
Module end 'content'
Timing: Jan 30 2025 16:40:31
Script end

Main resources:

Total runtime1.5293 sec
Peak memory usage8,192.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.0078151.1953
Module start 'layout' 0.00570.0040 739.2031220.6563
Module start 'content' 0.00971.5185 959.85944,476.2422
Module end 'content' 1.52820.0011 5,436.10167.8828
Script end 1.5293  5,443.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2377160.0002
Check MTime0.00140.0912160.0001
Mysql Total
Database connection0.00090.057510.0009
Mysqli_queries1.442094.2861590.0244
Looping result0.00060.0394570.0000
Template Total1.469096.120.7345
Template load0.00220.145620.0011
Template processing1.466895.910420.7334
Template load and register function0.00130.086210.0013
states
state_id_array0.00200.132310.0020
state_identifier_array0.00200.128820.0010
Override
Cache load0.00190.1212280.0001
Sytem overhead
Fetch class attribute can translate value0.00220.142730.0007
Fetch class attribute name0.00180.116540.0004
XML
Image XML parsing0.00250.162030.0008
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00450.2926160.0003
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs