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.

eZ debug

Timing: Jan 18 2025 05:08:46
Script start
Timing: Jan 18 2025 05:08:46
Module start 'layout'
Timing: Jan 18 2025 05:08:46
Module start 'content'
Timing: Jan 18 2025 05:08:46
Module end 'content'
Timing: Jan 18 2025 05:08:46
Script end

Main resources:

Total runtime0.6218 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 588.9297152.6094
Module start 'layout' 0.00930.0041 741.539139.4141
Module start 'content' 0.01330.6067 780.9531571.2734
Module end 'content' 0.62010.0017 1,352.226612.1875
Script end 0.6218  1,364.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.6014160.0002
Check MTime0.00140.2260160.0001
Mysql Total
Database connection0.00130.210210.0013
Mysqli_queries0.566591.1099600.0094
Looping result0.00060.0992580.0000
Template Total0.582593.720.2913
Template load0.00240.386820.0012
Template processing0.580193.289420.2900
Template load and register function0.00020.029610.0002
states
state_id_array0.00120.187310.0012
state_identifier_array0.00120.195920.0006
Override
Cache load0.00200.3189220.0001
Sytem overhead
Fetch class attribute can translate value0.00070.107830.0002
Fetch class attribute name0.00140.218440.0003
XML
Image XML parsing0.00090.141130.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00210.3451160.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 8

Time used to render debug report: 0.0005 secs