Forums / General / Using images

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Using images

Author Message

Glenn MacGregor

Thursday 13 November 2003 12:53:13 pm

Hi All,

What is the correct way to store images and access them from a page. On my frontpage I want to rotate images (keep it looking fresh). I think I have the code to get a random number between a high and a low. Now how do I use that to query the DB and get the image name. Once I have that image name how do I get it to display on the page.

Example:
Create (at root of content) Images folder. Put an image in the images folder. Create a testpage and override the template putting in (somewhere) "<img src=/images/img1>" (I called the image img1). When I browse to the testpage it can't find the image. If I browse to the hostname/images/img1 it works fine.

Any clues