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.