new image system in ez 3.3

Author Message

Georg Franz

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

Franz-Xaver Koch

Thursday 01 January 2004 6:52:16 pm

Hi,
I'm new to eZpublish (using ver.3.3.1) and in all documentations I've been told to do changes as far as possible with override-files. So I tried to override the default imagesize-settings which are set in site.ini and/or image.ini with new values (as described in the documentation for v.3.2) in the file "settings/siteaccess/my_site/site.ini.append" and "image.ini.append". I also tried it with the new size-description of ver.3.3 allready mentioned by Emil above but there was no change at all (caches were cleared).

I dislike changing the main files, because it would have effect on all websites of this installation which have a different design-grid than this website/domain has. Is there a possibility to override the imagesize setting for a single domain/layout/whatever?

Thanx a lot and a happy new year,
Franz.

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