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 ...
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!