How can I use ezenum in forms?

Author Message

Hans Melis

Tuesday 24 June 2003 6:26:10 am

Hi,

I'm working on a customised importscript for 2.x forms to 3.x content classes. All fields available in 2.x forms can be mapped nicely to 3.x datatypes, at least that's what I thought.

The ezenum datatype can be used to make a dropdown list, a multiselect list, a checkbox group or a radiobutton group. So I mapped all those types to ezenum, set the attributes to the correct values and imported the elements + their values. Creating an object of the class (which is actually making the form) went fine, but when I opened the form to test it I noticed that the ezenum fields aren't displayed. Their names are, but the optionlist doesn't appear (probably because of an absent 'Information Collector' checkbox when creating the class).

This is using 3.1-beta2 along with the importscripts posted in the contributions + some custom importscripts.

Is there any way that I can use the ezenum datatype as an information collector?

Thanks

--
Hans

Hans
http://blog.hansmelis.be

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

Main resources:

Total runtime0.8915 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.9141152.6250
Module start 'layout' 0.00720.0028 740.539139.4453
Module start 'content' 0.01000.8798 779.9844466.6641
Module end 'content' 0.88980.0016 1,246.64848.1641
Script end 0.8914  1,254.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4054160.0002
Check MTime0.00150.1634160.0001
Mysql Total
Database connection0.00060.072410.0006
Mysqli_queries0.849495.2802460.0185
Looping result0.00040.0478440.0000
Template Total0.857396.220.4287
Template load0.00230.255820.0011
Template processing0.855095.914820.4275
Template load and register function0.00010.013210.0001
states
state_id_array0.00140.154910.0014
state_identifier_array0.00120.139220.0006
Override
Cache load0.00180.2064120.0002
Sytem overhead
Fetch class attribute can translate value0.00060.068310.0006
Fetch class attribute name0.00070.083520.0004
XML
Image XML parsing0.00060.068710.0006
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00080.0895150.0001
String conversion0.00000.000840.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs