Forums / Discussions / Creating Datatypes in eZ Publish 4

Wednesday 29 July 2009 4:22:41 am - 5 replies

» Read full tutorial

Introduction

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.

Author Message

Denis Jonny

Thursday 25 February 2010 12:44:48 am

thanks for provide this helpful information.

BTW, if you have interest in these topics,
loan problems,how to lose weight fast?
best travel agency and baby care ?

Welcome to my blog.

David Silvester

Friday 09 July 2010 2:01:35 am

Do you have new updated version since 2007 or is it still the same ?

http://www.marketingmaximum.com/ourservices/guaranteedseo

Christoph von Siebenthal

Thursday 17 February 2011 10:41:25 pm

Many thanks

Seems to be great, but were habe the source files gone?

Nicolas Pastorino

Sunday 20 February 2011 3:46:51 am

"

Seems to be great, but were habe the source files gone?

"

I would suggest to get in touch with the initial author, and ask the question. You can do so using the Direct Contact link from Thomas' profile : http://share.ez.no/community/profile/11587

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Sao Tavi

Saturday 04 June 2011 6:40:15 am

Good enough tutorial, I managed to create my own datatype following this and some standard datatype as example.

 

On the other hand, I would be interested in exactly this datatype, date/time with timezone information, but I cannot find the source code. Does anyone know where it could be?

You must be logged in to post messages in this topic!

eZ debug

Timing: Jan 17 2025 22:51:39
Script start
Timing: Jan 17 2025 22:51:39
Module start 'content'
Timing: Jan 17 2025 22:51:40
Module end 'content'
Timing: Jan 17 2025 22:51:40
Script end

Main resources:

Total runtime0.2449 sec
Peak memory usage4,096.0000 KB
Database Queries220

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.8516180.8281
Module start 'content' 0.00460.1295 769.6797836.7109
Module end 'content' 0.13410.1108 1,606.3906339.8047
Script end 0.2448  1,946.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00351.4157210.0002
Check MTime0.00130.5491210.0001
Mysql Total
Database connection0.00060.243010.0006
Mysqli_queries0.166768.08712200.0008
Looping result0.00200.83222180.0000
Template Total0.225392.020.1126
Template load0.00160.660820.0008
Template processing0.223791.335320.1118
Template load and register function0.00020.061710.0002
states
state_id_array0.00080.345420.0004
state_identifier_array0.00100.393630.0003
Override
Cache load0.00140.5677310.0000
Sytem overhead
Fetch class attribute name0.00160.669680.0002
Fetch class attribute can translate value0.00120.490460.0002
class_abstraction
Instantiating content class attribute0.00000.006480.0000
XML
Image XML parsing0.00140.566360.0002
General
dbfile0.00220.8953330.0001
String conversion0.00000.001730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplforum_topic/full.tplextension/community_design/design/suncana/override/templates/forum_topic/full.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/quote.tpldatatype/ezxmltext/quote.tplextension/ezwebin/design/ezwebin/override/templates/datatype/ezxmltext/quote.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs