Forums / Setup & design / Edit the user
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
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.