New datatype

Author Message

David Santiso

Tuesday 15 March 2011 12:22:18 pm

Hi,

I would like to create a new data type that was like a selection, but that could set options in general.

I also would like to query and display these options, to make it possible to search that contain content that option.

Any ideas?

Thanks,

David

Marko Žmak

Tuesday 15 March 2011 12:45:51 pm

Could you clarify a little bit? What would "set options in general" mean?

Note: One replacement for the Selection datatype I found usefull is using "Object relation" or "Object relations" implemented as a dropdown or radio buttons.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

David Santiso

Tuesday 15 March 2011 1:03:53 pm

Object relations is what I need.
Thank you very much.

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 04:28:50
Script start
Timing: Jan 18 2025 04:28:50
Module start 'layout'
Timing: Jan 18 2025 04:28:50
Module start 'content'
Timing: Jan 18 2025 04:28:51
Module end 'content'
Timing: Jan 18 2025 04:28:51
Script end

Main resources:

Total runtime0.8800 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.2188152.6094
Module start 'layout' 0.00530.0033 741.828139.4063
Module start 'content' 0.00870.8700 781.2344534.9141
Module end 'content' 0.87860.0014 1,316.14848.2031
Script end 0.8800  1,324.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3658160.0002
Check MTime0.00140.1547160.0001
Mysql Total
Database connection0.00090.102110.0009
Mysqli_queries0.823193.5308570.0144
Looping result0.00070.0828550.0000
Template Total0.848296.420.4241
Template load0.00230.260720.0011
Template processing0.845996.122920.4230
Template load and register function0.00010.016510.0001
states
state_id_array0.00100.116210.0010
state_identifier_array0.00090.099020.0004
Override
Cache load0.00190.2212170.0001
Sytem overhead
Fetch class attribute can translate value0.00100.114020.0005
Fetch class attribute name0.00170.193140.0004
XML
Image XML parsing0.00090.107620.0005
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00090.1008180.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.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: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs