Creating a new datatype

Author Message

David Zaoui

Tuesday 19 June 2007 9:12:16 am

Hello,

I want to create a new datatype, which would be a simplified version of ezauthor (one input box where you put a text, and you can add new inputs when editing).

what should i do? create a new extension ? or is there an other way ?

Thank you !

David

Ɓukasz Serwatka

Tuesday 19 June 2007 11:31:25 pm

Hi,

Look on this tutorial:
http://ez.no/ezpublish/documentation/development/extensions/datatypes

New custom datatypes are stored in the extension.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.7859 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.0156152.6094
Module start 'layout' 0.00660.0038 741.625039.4141
Module start 'content' 0.01040.7741 781.0391523.7031
Module end 'content' 0.78450.0013 1,304.74228.3438
Script end 0.7858  1,313.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4637160.0002
Check MTime0.00140.1800160.0001
Mysql Total
Database connection0.00100.125610.0010
Mysqli_queries0.741394.3284540.0137
Looping result0.00060.0713520.0000
Template Total0.753795.920.3768
Template load0.00220.283420.0011
Template processing0.751495.619420.3757
Template load and register function0.00020.020610.0002
states
state_id_array0.00070.084910.0007
state_identifier_array0.00070.092720.0004
Override
Cache load0.00180.2274140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.092020.0004
Fetch class attribute name0.00150.190730.0005
XML
Image XML parsing0.00070.090020.0004
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00070.0927180.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0001 secs