[SOLVED] Collected data modification

Author Message

Guillaume Dablin

Tuesday 28 July 2009 9:42:29 am

Hello,

I made some forms allowing user to input some data (like "contact information" by example) and I would like to give to the users the possibility to modify/update these information.

I'm working on that point since few days and I'm still not able to perform it. Does anybody have a solution to do so ?

Many thanks in advance for your help.

Ivo Lukac

Tuesday 28 July 2009 9:51:25 am

Collected data is not suited for modification. It is just for gathering information. If your users need to modify their contact information then the easiest way is to make a link to edit their user object (user class needs to be modified to meet the needs).

How to make link to user object you can find in design/standard/templates/user/ folder. There are few templates covering these functionalities.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Guillaume Dablin

Wednesday 29 July 2009 12:54:34 am

Thank you for your prompt reply. This helped me a lot to move forward !!!

Now, I succeed to give the possibility to a user to modify a given object.

Nevertheless, I have now another difficulty about that. I don't know how to populate the edit template with the relevant data. Beside this, looking at the code of the edit template, I don't understand the variables that are used into it and, as a consequence, I don't understand how to manipulate them (moreover I was not able to find documentation about it).

Any ideas about that ?

Many thanks in advance for your help.

Ivo Lukac

Wednesday 29 July 2009 7:01:07 am

Is it hard to help you in one post :) sorry.
Try dig in to technical reference part of documentation.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Guillaume Dablin

Wednesday 05 August 2009 3:02:21 am

Hello,
I did finally find a way to achieve my objective by using "roles and policies" functionnality and allowing user to create/edit/remove their own object.
Thank you for your help on this.

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 18:14:39
Script start
Timing: Jan 18 2025 18:14:39
Module start 'layout'
Timing: Jan 18 2025 18:14:39
Module start 'content'
Timing: Jan 18 2025 18:14:40
Module end 'content'
Timing: Jan 18 2025 18:14:40
Script end

Main resources:

Total runtime0.9793 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.1328152.6250
Module start 'layout' 0.00690.0042 741.757839.4453
Module start 'content' 0.01110.9670 781.2031557.0859
Module end 'content' 0.97800.0012 1,338.289112.1563
Script end 0.9793  1,350.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3191160.0002
Check MTime0.00140.1408160.0001
Mysql Total
Database connection0.00130.135810.0013
Mysqli_queries0.931395.0981630.0148
Looping result0.00060.0598610.0000
Template Total0.947696.820.4738
Template load0.00180.183020.0009
Template processing0.945896.579420.4729
Template load and register function0.00030.027510.0003
states
state_id_array0.00120.118010.0012
state_identifier_array0.00130.130020.0006
Override
Cache load0.00150.1565250.0001
Sytem overhead
Fetch class attribute can translate value0.00060.058720.0003
Fetch class attribute name0.00110.114960.0002
XML
Image XML parsing0.00070.075520.0004
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00080.0790170.0000
String conversion0.00000.001040.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs