Create a new object

Author Message

john roy

Tuesday 17 October 2006 9:13:11 am

Hi!

I'd like to allow my Anonymous Users to create a new object to the class "class_contact".

With contentobject_attribute : "Name" and "file" because i'd like to make a feedback form with a "file" field.

<form name="new_contact" method="post" action={"content/action"|ezurl}>                 
       <input class="button" type="submit" name="Feedback" value="Feedback" />                 
       <input type="hidden" name="RedirectURIAfterPublish" value="/" />                 
       <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />                 
       <input type="hidden" name="ContentObjectID" value="{$content_object.id}" />                 
       <input type="hidden" name="NodeID" value="{$node.node_id}" />                 
       <input type="hidden" name="ClassIdentifier" value="class_contact" />             
</form>

Any ideas on how to achieve this?

Thanks!
John

Lara Nordahl

Saturday 04 September 2010 3:07:59 pm

Hi John, Did you ever figure out how to do this? I'd like to do something similar.

Thanks!

Lara

Matthieu Sévère

Monday 06 September 2010 1:02:30 pm

Hello John,

You should have a look at this project : http://projects.ez.no/enhancedezbinaryfile

It allows you to use the collect information system with a binary file datatype.

Thus, I advise you to have a look at the feedback form of ezwebin and to do the same with this new datatype.

Cheers !

--
eZ certified developer: http://ez.no/certification/verify/346216

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