Right attributes for custom class

Author Message

Albe Terra

Monday 22 September 2008 5:29:27 am

Hi!
I have to create a custom content class that should contain:

-one image with a caption
-one video with a text description
-one file attachment with the file name

Which are the best attributes to use for this class?
I know that for the image, for example, there's the image datatype, but it has no possibility to add a caption. The idea could be to add a "text line" datatype for the caption. The same can be done for the description of the video and the name of the attachment.

Do you have a better idea?

Thanks, Albe

Piotrek Karaƛ

Monday 22 September 2008 12:49:04 pm

The idea could be to add a "text line" datatype for the caption. The same can be done for the description of the video and the name of the attachment.

Seems like exactly what should be done (other than programming your custom datatypes).

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 31 2025 01:32:36
Script start
Timing: Jan 31 2025 01:32:36
Module start 'layout'
Timing: Jan 31 2025 01:32:36
Module start 'content'
Timing: Jan 31 2025 01:32:36
Module end 'content'
Timing: Jan 31 2025 01:32:36
Script end

Main resources:

Total runtime0.0296 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.1406151.2109
Module start 'layout' 0.00710.0046 739.3516220.7031
Module start 'content' 0.01170.0159 960.0547997.9297
Module end 'content' 0.02760.0019 1,957.984429.9922
Script end 0.0295  1,987.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003110.3996140.0002
Check MTime0.00113.7832140.0001
Mysql Total
Database connection0.00093.197410.0009
Mysqli_queries0.003010.257830.0010
Looping result0.00000.050810.0000
Template Total0.00124.210.0012
Template load0.00103.275610.0010
Template processing0.00030.929910.0003
Override
Cache load0.00062.186910.0006
General
dbfile0.00061.865480.0001
String conversion0.00000.046740.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