New datatype: <text, image, movie>

Author Message

Federico Maggi

Monday 27 March 2006 1:12:09 pm

Hi,
I am going to write an extension in order to provide a new datatype for attributes, but I don't want to reinvent the wheel so I ask for suggestions.

I need a multi-field datatype (like "Author", that has "Name" and "Mail") with arbitrary cardinality (like "Author", where you can specify "Add author" and add how may authors you need).

I may want to call my new datatype

"TextWithImageAndMovie"

because an attribute of such type must be a collection of triples <text, image(file), movie(file)>. Do you have any suggestion/starting point/similar datatypes or whatever useful to get me noticed about?

Thanks

PS - If my question is not so clear, please let me know!

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 19 2025 20:14:41
Script start
Timing: Jan 19 2025 20:14:41
Module start 'layout'
Timing: Jan 19 2025 20:14:41
Module start 'content'
Timing: Jan 19 2025 20:14:41
Module end 'content'
Timing: Jan 19 2025 20:14:41
Script end

Main resources:

Total runtime0.0157 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.0054 589.1563152.6250
Module start 'layout' 0.00540.0038 741.781339.4453
Module start 'content' 0.00920.0044 781.226685.2266
Module end 'content' 0.01350.0021 866.453130.3047
Script end 0.0157  896.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.0840140.0002
Check MTime0.00106.6472140.0001
Mysql Total
Database connection0.00084.951610.0008
Mysqli_queries0.003220.244030.0011
Looping result0.00000.197510.0000
Template Total0.001811.610.0018
Template load0.00095.785710.0009
Template processing0.00095.805510.0009
Override
Cache load0.00063.926010.0006
General
dbfile0.00052.974980.0001
String conversion0.00000.069940.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