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.

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

eZ debug

Timing: Jan 18 2025 19:09:15
Script start
Timing: Jan 18 2025 19:09:15
Module start 'layout'
Timing: Jan 18 2025 19:09:15
Module start 'content'
Timing: Jan 18 2025 19:09:16
Module end 'content'
Timing: Jan 18 2025 19:09:16
Script end

Main resources:

Total runtime1.1484 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0391152.6406
Module start 'layout' 0.00500.0034 740.679739.4766
Module start 'content' 0.00851.1386 780.1563614.5078
Module end 'content' 1.14710.0012 1,394.664116.1250
Script end 1.1483  1,410.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2810160.0002
Check MTime0.00140.1240160.0001
Mysql Total
Database connection0.00060.050110.0006
Mysqli_queries1.083194.3133680.0159
Looping result0.00060.0552660.0000
Template Total1.117197.320.5585
Template load0.00180.157220.0009
Template processing1.115397.117220.5576
Template load and register function0.00010.008910.0001
states
state_id_array0.00170.143910.0017
state_identifier_array0.00120.102920.0006
Override
Cache load0.00160.1403340.0000
Sytem overhead
Fetch class attribute can translate value0.00080.067830.0003
Fetch class attribute name0.00190.166090.0002
XML
Image XML parsing0.00200.175630.0007
class_abstraction
Instantiating content class attribute0.00000.0021120.0000
General
dbfile0.00250.2215300.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs