Friday 19 December 2003 4:48:57 am
Hi ezcrew, I've some questions belonging the new image system in ez 3.3.
a) You have introduced a new variable to check, if an image is valid. So in ezimage.tpl you do: {section show=$image_content.is_valid} In which cases "is_valid" becomes true? If an image-file is attached? Or asking in an other way: How can I check, if an object of a content-class which has an attribute "ezimage" has an image attached?
Is
{section show=$content_version.data_map.image.content.is_valid} the best way? b) At the moment, I mess up with the "image classes" / sizes. I've installed multiple siteaccess, sometimes, the images are shown in the correct size, sometimes not. I think, it's a setup error done by me. So my questions: In former versions of ez (till 3.2.3), you first specify the image sizes in site.ini, then in image.ini like
site.ini:
[ImageSettings]
SmallSizeWidth=120 SmallSizeHeight=120 In the new version you do like this in image.ini:
[AliasSettings] AliasList[]=small
[small] Filters[]=geometry/scaledownonly=120;120 So my question: Are both settings (old style, new style) necerssary (in site.ini and image.ini) to setup the image sizes or is the old code still present for compatibily reasons? I am asking because I've found out, that in the current ezimage.php (trunk 4569) in kernel/classes/datatypes/ezimage, some code also wants to read the ini-settings of the site.ini belonging the image sizes. (around line 163)
Kind regards, Emil.
Best wishes,
Georg.
--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004
|