The way to edit values without attribute_edit_gui

Author Message

Valenti salas

Sunday 16 January 2005 10:40:22 pm

Dear,

I have been searching for a solution to create forms without using the atttribute_edit_gui method.

I'm trying to use some similar to the next code:

<form enctype="multipart/form-data" action={"/user/register/"|ezurl} method="post" name="Register">

Name: <input type='text' name='ContentObjectAttribute_data_string_8' value='{$the_name}'>

<input type="hidden" name="ContentObjectAttribute_id[8]" value="{$content_attributes[0].id}" />

...
(the same with the other attributes of user class)
...

<input type="submit" name="PublishButton" value="SEND">
</form>

It creates a new entry in the users folder, but with no values. I think I'm in
the way to find a solution to don't use attribute_edit_gui, can please anyone with some more knowledge of ez internal structure give me some ideas about if this is a correct way and what is wrong in the code?

Is a very urgent question for me because I have to create a user dinamically from a template with prefilled values in the fields and there is no documentation to do it or some similar.

Many thanks.

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