Custon form to create object

Author Message

Fred Gueho

Thursday 13 April 2006 10:33:08 am

I have this form in my front office :

- name
- activity (with an option list : engineer or assistant or chief)

I'd like to store the input in different contentObjets in a folder in my back office.
The contentObject would be created from a contentClass that has 2 attributes : name and activity.

I've done it in the guestbook creation of the tscm site tutorial, here :
http://ez.no/products/ez_publish/documentation/building_an_ez_publish_site/the_guestbook

But there was only 'ezText' attributes. Now, I need to have 'ezOption' attribute for my 'activity' field, and I can't figured out how to do that.

The problem is that options (of an ezOption attribute) are created in objects not classes. So when I create an object from my class, I can add any options I want. And I don't want the user to do that. I need them to choose among a premade options list.

So, Is it possible to have a form with option fields and to store user inputs in objects ?
How ?

Thank for your help.

Fred

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.