Edit the user

Author Message

esperion H

Thursday 20 July 2006 10:28:39 am

I want the users on my site to be able to edit their account. By default, they can click on the edit account-link in the login toolbox, then they get an overview of the versions of their account. From their they can click again to edit a version.

I want them to be able to go directly to the last step so they can start editing their account right away.

How can this be done?

I know the link in the toolbox has to be modified, and that it should link to a url that will edit the appropriate version. Somehow I need to fetch the value of this version, but how? I have tried to use "hash" in the link directly, but it hasn't worked out so far.

Appreciate your help.

Esperion

Ɓukasz Serwatka

Thursday 20 July 2006 11:18:00 pm

Hi,

How do you trigger the user object edit mode?

With http://example.com/content/edit/14 (14 is object_id) eZ publish should use automatically the latest version.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marcin Drozd

Friday 21 July 2006 1:01:27 am

Hi
Is your error like: "Possible edit conflict" ?
I think U've got no stored draft. try to set EditDirtyObjectAction=usecurrent ([ContentSettings] in site.ini)

http://ez-publish.pl

esperion H

Friday 21 July 2006 10:21:30 am

Lukasz, I tried to use number 14, but I got the error message that this object does no longer exist or isn't available.

I use ez publish 3.7.

It should be possible to use the concat function with a variable for the draft version. I don't know which variable and how to fetch/get the value.

Anyway this should be perfectly doable as this is the way the forum works. When you edit a post, you go directly to the last version of the post you have made, not an overview of the versions you have made.

Jeroen Sangers

Monday 24 July 2006 4:01:56 am

First look up the object ID of the user you are trying to edit, and use that number instead of 14. 14 was just an example.

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 16:08:55
Script start
Timing: Jan 18 2025 16:08:55
Module start 'layout'
Timing: Jan 18 2025 16:08:55
Module start 'content'
Timing: Jan 18 2025 16:08:56
Module end 'content'
Timing: Jan 18 2025 16:08:56
Script end

Main resources:

Total runtime0.8217 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 594.5781152.6094
Module start 'layout' 0.00550.0035 747.187539.4141
Module start 'content' 0.00900.8112 786.6016631.2813
Module end 'content' 0.82020.0014 1,417.882812.1953
Script end 0.8216  1,430.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4436160.0002
Check MTime0.00130.1620160.0001
Mysql Total
Database connection0.00090.105410.0009
Mysqli_queries0.763792.9484670.0114
Looping result0.00090.1137650.0000
Template Total0.791896.420.3959
Template load0.00180.224920.0009
Template processing0.789996.140620.3950
Template load and register function0.00020.027910.0002
states
state_id_array0.00110.129310.0011
state_identifier_array0.00070.089120.0004
Override
Cache load0.00160.1909260.0001
Sytem overhead
Fetch class attribute can translate value0.00110.136840.0003
Fetch class attribute name0.00160.191670.0002
XML
Image XML parsing0.00280.346140.0007
class_abstraction
Instantiating content class attribute0.00000.002170.0000
General
dbfile0.00240.2888240.0001
String conversion0.00000.001240.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
1content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs