Tutorials & articles written by Thomas Koch

Creating Datatypes in eZ Publish 4

Content in eZ Publish is stored in attributes of content objects. A datatype describes the type of value that can be stored in an attribute and is the smallest possible entity of storage. It determines how a specific type of information should be validated, stored and retrieved. eZ Publish comes with a set of datatypes for, among other things, plain text, formatted text, images, email addresses and dates. This article explains how to create additional datatypes in eZ Publish 4, and explores how to take advantage of some of the new eZ Publish 4 features.

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 15:13:35
Script start
Timing: Jan 18 2025 15:13:35
Module start 'layout'
Timing: Jan 18 2025 15:13:35
Module start 'community'
Timing: Jan 18 2025 15:13:35
Module end 'community'
Timing: Jan 18 2025 15:13:35
Script end

Main resources:

Total runtime0.0647 sec
Peak memory usage4,096.0000 KB
Database Queries24

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.7891152.6094
Module start 'layout' 0.00640.0020 740.398431.6719
Module start 'community' 0.00830.0554 772.0703422.8750
Module end 'community' 0.06380.0009 1,194.945310.6406
Script end 0.0647  1,205.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00284.3268140.0002
Check MTime0.00121.8681140.0001
Mysql Total
Database connection0.00121.922910.0012
Mysqli_queries0.041463.8705240.0017
Looping result0.00020.2552210.0000
Template Total0.047873.820.0239
Template load0.00121.779320.0006
Template processing0.046671.987620.0233
Template load and register function0.00010.102010.0001
Override
Cache load0.00081.198240.0002
states
state_id_array0.00142.137610.0014
state_identifier_array0.00071.074910.0007
Sytem overhead
Fetch class attribute name0.00060.967010.0006
class_abstraction
Instantiating content class attribute0.00000.006310.0000
General
dbfile0.00010.224370.0000
String conversion0.00000.010730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1community/articles.tpl<No override>extension/community_design/design/suncana/templates/community/articles.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs