Picture on frontpage

Author Message

Bengt Danielsen

Wednesday 29 December 2004 11:51:43 am

I have a picture that I want on my site, but in folder description i Can't use the img tag. Any suggestion on how to overcome this?
This picture is 550 pixels wide, and I want it this wide on the site. On the FRONTPAGE!

Please help... URGENT

Bengt Danielsen

Balazs Halasy

Wednesday 29 December 2004 12:11:51 pm

Hi,

If you want to use the XML field (folder's description field) then you'll have to create an image object. For example, create a new image object in the media part of the system. Edit the folder and add the image as a related object. Copy and paste the <object id=...> code into the XML field.

Another way would be to override the the folder template for that exact node (and nothing else). In the override template, you would place your own/custom HTML code which could easily bring up an image (using the img tag) from the images folder of the design that you're using:

<img src={'example.jpg'|ezimage} width="550" height="550" alt="Example" />

Balazs

Bengt Danielsen

Wednesday 29 December 2004 3:21:00 pm

Thanx for replying so quickly...
Could you please be more spesific on where to overide the templat for that particular node?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.