New datatype: <text, image, movie>

Author Message

Federico Maggi

Monday 27 March 2006 1:12:59 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 11:51:05
Script start
Timing: Jan 19 2025 11:51:05
Module start 'layout'
Timing: Jan 19 2025 11:51:05
Module start 'content'
Timing: Jan 19 2025 11:51:05
Module end 'content'
Timing: Jan 19 2025 11:51:05
Script end

Main resources:

Total runtime0.0170 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.0059 589.1484152.6250
Module start 'layout' 0.00590.0029 741.773439.4453
Module start 'content' 0.00880.0059 781.218885.1953
Module end 'content' 0.01470.0023 866.414130.3047
Script end 0.0170  896.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002816.6009140.0002
Check MTime0.00116.6046140.0001
Mysql Total
Database connection0.00116.264710.0011
Mysqli_queries0.002816.291830.0009
Looping result0.00000.081110.0000
Template Total0.001810.310.0018
Template load0.00095.315010.0009
Template processing0.00084.980710.0008
Override
Cache load0.00063.618410.0006
General
dbfile0.00031.889680.0000
String conversion0.00000.035040.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.0002 secs