All you want to know about datatype development

Sunday 03 October 2010 5:37:49 am

By : Jérôme Vieilledent

If you needed once to develop a custom datatype in eZ Publish, you must know what pain it can be...

No official developer documentation is available and eZDataType class which must be overridden by your custom datatype really lacks of API doc (doxygen, phpdoc).

Searching the community portal a bit, you'll find a nice tutorial by Thomas Koch. This tutorial can be a good kickstart but it remains a bit complicated. Moreover, it doesn't cover all features offered by eZ Publish datatypes.

So, as I also needed to develop a new custom datatype for my Amazon extension, jvAmazonAdvertising, I decided to dissect this not-so-well-known datatype functionnality in order to write a new tutorial : Datatypes development : The definitive guide.

Stay tuned for updates ! ;-)

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 02:12:10
Script start
Timing: Jan 18 2025 02:12:10
Module start 'layout'
Timing: Jan 18 2025 02:12:10
Module start 'content'
Timing: Jan 18 2025 02:12:10
Module end 'content'
Timing: Jan 18 2025 02:12:10
Script end

Main resources:

Total runtime0.0196 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.0094 589.5313153.4844
Module start 'layout' 0.00940.0030 743.015639.4609
Module start 'content' 0.01240.0053 782.476689.9688
Module end 'content' 0.01770.0019 872.445330.2891
Script end 0.0195  902.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.1351140.0002
Check MTime0.00115.7143140.0001
Mysql Total
Database connection0.002412.223310.0024
Mysqli_queries0.004623.378830.0015
Looping result0.00000.071910.0000
Template Total0.00157.710.0015
Template load0.00084.187010.0008
Template processing0.00073.506810.0007
Override
Cache load0.00062.852310.0006
General
dbfile0.00031.565180.0000
String conversion0.00000.047540.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