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.