Custom datatype: image

Author Message

Albe Terra

Wednesday 03 September 2008 1:27:57 am

Hi!
Is there a custom datatype for images?

The standard image datatype has two attributes: the file and the alternative text.
I need also to have a caption.

Is there something already done? Or is there the possibility to modifiy the image datatype?

Thanks, Albe :)

Pascal Specht

Wednesday 03 September 2008 4:34:00 am

Hi Albe,

the easiest would probably be to add attributes to the existing Image class. Easy to do when using the administration interface, just browse to /ezwebin_site_admin/class/classlist/3 or use Administration->Classes and select the Image clas, which is in Media.

Hope this helps,

</Pascal>

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 16:04:32
Script start
Timing: Jan 18 2025 16:04:32
Module start 'layout'
Timing: Jan 18 2025 16:04:32
Module start 'content'
Timing: Jan 18 2025 16:04:32
Module end 'content'
Timing: Jan 18 2025 16:04:32
Script end

Main resources:

Total runtime0.0138 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 587.8906152.6094
Module start 'layout' 0.00460.0028 740.500039.4141
Module start 'content' 0.00740.0047 779.914189.3047
Module end 'content' 0.01210.0017 869.218830.3047
Script end 0.0138  899.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.7925140.0002
Check MTime0.00107.1372140.0001
Mysql Total
Database connection0.00053.745310.0005
Mysqli_queries0.002316.858030.0008
Looping result0.00000.144810.0000
Template Total0.001410.210.0014
Template load0.00075.327510.0007
Template processing0.00074.865610.0007
Override
Cache load0.00053.774610.0005
General
dbfile0.00021.575380.0000
String conversion0.00000.139640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs