Share » Forums » Setup & design » ezimage

ezimage

ezimage

Friday 19 January 2007 8:08:36 am - 2 replies

Author Message

kracker (the)

The Doctor

Friday 19 January 2007 9:06:39 pm

Hello,

You can use an image uploaded inside eZ publish by writing a fetch to get the image and it's details from the content structure.
<i>http://ez.no/doc/ez_publish/technical_manual/3_8/reference/modules/content/fetch_functions/list</i>

Yet I would recommend, first moving your image into your design folder's image folder. Example: <i>design/exampledesign/images/</i>

After doing this, your example source code is close but not quite correct. Try changing your code to look like this ...

<img src={"menu_sign.jpg"|ezimage} width="149" height="57" alt="" border="0" />

This will output the design folder's location and the file similar to '/design/exampledesign/images/menu_sign.jpg'.

<i>http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/urls/ezimage</i>

<i>hth,
//kracker</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Koen Colen

Wednesday 24 January 2007 8:12:47 am

Thanks for the quick reply Kracker.
Still I cannot get it to work.
Is it normal that I have to create the folder inside the design directory myself (that it's not created by the system during install or during the creation of a new sitestyle package)?

Currently I have 3 folders in the design directory (admin, base & ezwebin), do I have to create a new one with the same name as the siteaccess ?

Correct me if I'm wrong please:

- media that belongs to a sitestyle goes into the "var/storage" directory during install of sitestyle, content writers cannot mess with it.
- media that's not in the sitestyle but that I like to add in a template afterwards (like the menu_sign.jpg), I copy to the design directory
- media that can be inserted in the content of pages gets uploaded by the user to the media library and gets stored in the "var/ezwebin_site" folder

I really want to get my head around this EZpublish thing, I sense it's very powerful with the object approach on almost anything.
Kind of a lot to start with but I'm pretty sure that pays off afterwards in flexibility.

Tnx!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu