Forums / Setup & design / Display image in 3.3

Display image in 3.3

Author Message

Piotr Switkowski

Monday 08 December 2003 7:25:19 am

I just loaded ez3.3 beta 1. I tried to display images as described in documentation (ie. using $image.content[small].full_path). However, I was getting error that I try to execute method on non-object. Then I tried to use attribute_view_gui and everything was fine. So I have some questions:
- is the syntax described in documentation still valid or it simply got changed and this is not documented yet?
- is this a bug in 3.3?
- which method is preffered: accessing full_path or attribute_view_gui?
- where can I find more info on attribute_view_gui?

Regards

Claude Mueller

Monday 26 January 2004 1:51:00 pm

Same problem over here.

I set some aliases in override/image.ini.append etc. But I basically can't display any of them. I've been spending the last 2 hours trying to find a solution here in the community forum, but impossible (of course I found a lot - but it didn't help me. For example, some bug reports about that...but now, do I have problems because of ez's bugs or not, I am not sure). So here's some simple questions:

- How can I display an image that has an alias with attribute_view_gui ? What attributes are needed to tell what image alias I want ? image_variation ? size ?

- How should an embed_image.tpl to override the display of images file look like with the new image system ? (I managed to do that with the old system)

- Are the examples shipped with e.g. the corporate package 3.3 already updated or not ?

Really having problems with finding things I need because of missing documentation. Without ez.no's SEARCH-button and hints found in this Forum I would have given up ezPublish a long time ago already.

Greetings,
Claude

Guglielmo Celata

Thursday 29 January 2004 2:07:06 pm

How I add/change images sizes in eZ 3.3.2.

copy/paste the following code from settings/image.ini into settings/override/image.ini.append.php

AliasSettings[]
AliasList[]
AliasList[]=reference
AliasList[]=small
AliasList[]=medium
AliasList[]=large
AliasList[]=thumb
AliasList[]=rss

[reference]
Filters[]
Filters[]=geometry/scaledownonly=600;600

[small]
Reference=reference
Filters[]=geometry/scaledownonly=100;100

[medium]
Reference=reference
Filters[]=geometry/scaledownonly=200;200

[large]
Reference=reference
Filters[]=geometry/scaledownonly=300;300

[thumb]
Reference=reference
Filters[]=geometry/scaledownonly=50;50

[rss]
Reference=reference
Filters[]=geometry/scale=88;31

this overrides the default specification, by adding a 'thumb' size specification

then you can see the image, using <object id="XX" size="thumb" /> inside an xmlText field

in order to see the image, which is embedded in the xmlText, I had to override the template content/view/embed.tpl, using the code found in content/datatype/view/ezmedia.tpl

it worked, and actually I managed to have also flash objects embedded this way

still, I don't know how to see the thumb image using attribute_view_gui,

hope the rest works anyway
Guglielmo