ezOption question

Author Message

Clemens T

Saturday 24 September 2005 5:53:40 am

Hey all,
I want to collect information about what language the user prefers (a couple of options). I'm using the information collection system in eZ.

This manual:
http://ez.no/doc/ez_publish/technical_manual/3_6/reference/datatypes/option

says I'm allowed to add options to my collection form if I use the 'option' attribute in my content class. But how can I provide the options, because the options provided down there like 'blue', 'green' etc. are added too, but I can't figure out where, and how etc.

I now get language:'There are no options' on my final page.

Hopefully someone can help me on this, it took me way to much time already!
Thanks,
Clemens Timmermans

Clemens T

Monday 26 September 2005 3:18:34 am

isn't there ANYone with an answer to this fairly easy question?
Thanks!
Clemens

Albert Hornos

Monday 26 September 2005 3:35:18 am

Hi Clemens!
I don't know if I understand quite right your question. But if you want to add options you should add option attribute to your content class.
Then, when you create the form you should add options to this form. You should add options just like you add the title or the other fields. First you should click the button add option and then fill the gap with the option you want.
If the question is how to collect the information, it's just like the others attributes.
I hope I've been a help, in other case, could you explain what's exactly what do you want to do?

Albert.

Clemens T

Monday 26 September 2005 3:35:42 pm

OK, I got it now,
the answer is:

In the class you create an optie which is an information collector.

In the instance of this class (the form/object/node) you edit the object, and you can ADD options for the radiobuttons (/dropdown box).

Greets,
Clemens

Marin Orlic

Wednesday 23 November 2005 10:59:14 am

Is there a way to specify the option list directly in the class definition? For instance, I need a rating system for content objects, allowing users to rate the object (for instance, rate each movie from 1 to 5).

It would be a hassle to force users to enter 1, 2, 3, 4, 5 each time a content object is created?

As far as I can tell, a suitable datatype for this would be ezoption, but it's values cannot be specified in class definition. I would prefer something like ezselection or ezrangeoption...

Any hints?

Thx,
M.

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

Main resources:

Total runtime0.7525 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 587.7969152.6094
Module start 'layout' 0.00470.0042 740.406339.4297
Module start 'content' 0.00890.7425 779.8359531.1563
Module end 'content' 0.75140.0011 1,310.992212.1875
Script end 0.7525  1,323.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4335160.0002
Check MTime0.00130.1735160.0001
Mysql Total
Database connection0.00070.087910.0007
Mysqli_queries0.698692.8310650.0107
Looping result0.00060.0854630.0000
Template Total0.714795.020.3574
Template load0.00210.283320.0011
Template processing0.712694.691220.3563
Template load and register function0.00020.025710.0002
states
state_id_array0.00100.132010.0010
state_identifier_array0.00320.423520.0016
Override
Cache load0.00180.2416370.0000
Sytem overhead
Fetch class attribute can translate value0.00080.102030.0003
Fetch class attribute name0.00180.244650.0004
XML
Image XML parsing0.00030.040830.0001
class_abstraction
Instantiating content class attribute0.00000.002150.0000
General
dbfile0.00060.0763100.0001
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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/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: 24
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs