How can i creat a new datatype like option?

Author Message

sangib das

Thursday 19 October 2006 5:33:02 am

Hi all
I want to add a new datatype like option?
need help...............
Thanks and regard
Sangib

Claudia Kosny

Thursday 19 October 2006 11:31:20 am

Hi Sangib

if that is related to your previous problem
http://ez.no/community/forum/developer/how_to_create_multi_checkbox_like_multi_option
you should rather just change the templates. If you have a problem with that please first check the comments I have posted there and if necessary post your current template there, I will have a look at it.

Creating new datatypes is not the easiest thing to do, so I would try to use existing EZ datatypes as much as possible.
If you really need to create a new datatype, here is a short introduction (which is for an older version of EZ, but most is the same):
http://ez.no/products/ez_publish/documentation/development/extensions/datatypes/new_datatype
Also check the comments in the file \kernel\classes\ezdatatype.php, there are quite useful.
For working examples check the datatypes in the contributions and play a bit with them.

Greetings from Luxembourg

Claudia

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 31 2025 07:26:05
Script start
Timing: Jan 31 2025 07:26:05
Module start 'layout'
Timing: Jan 31 2025 07:26:05
Module start 'content'
Timing: Jan 31 2025 07:26:06
Module end 'content'
Timing: Jan 31 2025 07:26:06
Script end

Main resources:

Total runtime1.3003 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.0063 588.2656151.2266
Module start 'layout' 0.00630.0026 739.492236.6797
Module start 'content' 0.00891.2905 776.1719883.6016
Module end 'content' 1.29940.0009 1,659.77347.8125
Script end 1.3003  1,667.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2615160.0002
Check MTime0.00130.1037160.0001
Mysql Total
Database connection0.00120.095110.0012
Mysqli_queries1.256096.5938540.0233
Looping result0.00050.0380520.0000
Template Total1.259496.920.6297
Template load0.00210.158020.0010
Template processing1.257396.692320.6287
Template load and register function0.00140.105810.0014
states
state_id_array0.00200.155610.0020
state_identifier_array0.00540.417220.0027
Override
Cache load0.00170.1323200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.040920.0003
Fetch class attribute name0.00200.154820.0010
XML
Image XML parsing0.00020.018820.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00210.1579100.0002
String conversion0.00000.000740.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs