Forums / General / OE: how to define a class (attribute) for Image

OE: how to define a class (attribute) for Image

Author Message

Felix Laate

Thursday 14 April 2005 12:53:39 am

Hi all!

Silly question probably, but I can't seem find it out (and I can't even blame it on being monday).

I want to insert an image into the body of an article. Under attributes, size an align are fine, but class simply shows [none]. I want to be able to choose something else there.

How is this done. What ini-file do I need to ajust?

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Thursday 14 April 2005 1:08:53 am

In edit mode you will have to add img as related object or upload new one. Then you can insert image to body of article

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Felix Laate

Thursday 14 April 2005 1:15:31 am

Hi Lukasz!

I clearly didn't explain my problem right. The problem is not how to put the image into the body, but how I can define classes that I can choose as attribute when I do the insert.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Thursday 14 April 2005 1:29:44 am

Yep, now it`s clear ;)

You will have to add [object]

AvailableClasses[]
AvailableClasses[]=objectBlue 

in content.ini

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Felix Laate

Thursday 14 April 2005 3:24:53 am

Hi again!

Thank you for your quick repsone!

felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

laurent le cadet

Wednesday 11 May 2005 2:55:20 am

Hi,

The class also include the caption.

Which template is used if I just want the image to be concerned ?

Laurent.