Sunday 05 August 2007 5:08:30 pm
I am new to EZ Publish and have been working with it for a few weeks. I created a new user class for our members. In the registration form I wanted them to be able to make multiple choices for certain attributes. Since I wanted the choices displayed as checkboxes it seemed that <i>enum</i> was the sole datatype that could be used. Using EZ Selection with multiple choice would both display as an ugly box, and also complicating for users needing to ctrl + click to make selections. Then I found out that enum was deprecated. But it still seemed to work out fine using 3.9 so I didn't care. Today I was just about to csv-import all my users, when I realized that all of a sudden the registration form had radio buttons rather than check boxes? I soon realized that when I edit my class the box I ticked for 'multiple choice' is suddenly unmarked, then saving it results in the obvious change on the site. Also, the test users that I had added and choosing multiple values for these questions using enum did no longer have multiple data stored for them... Luckily enough I hadn't imported the users yet and not put the site live. A word of wisdom, don't use enum. I am now looking into other solutions to use eZSelection but displaying checkboxes instead. This post looks promising - http://ez.no/community/forum/developer/how_to_create_multi_checkbox_like_multi_option/re_how_to_create_multi_checkbox_like_multi_opt__7 Jesper
|