Forums / Setup & design / [SOLVED] User self edit questions

[SOLVED] User self edit questions

Author Message

Jeremy B.

Wednesday 29 July 2009 7:39:04 am

Hi all,

I've some questions about the self user editing feature :

1/ I can't find anywhere what is the correct url for a user to let him edit himself... I got something with typing "user/edit". Am I right ?

I saw some other views like "setting", or "preference" but this is not working (unknown object), and I don't even really understand what there are supose to do.

2/ If "user/edit" is the right thing, how do you set roles to the users ?
I've set :

user selfedit  	 Pas de limitations
user 	preferences 	Pas de limitations
user 	password 	Pas de limitations
content 	create 	Class( MyOwnUserClass ) , Section( Users ) , ParentOwner( Self ) 

Is this ok ? I'm not sure because the user can really edit all the object ; I just want him to be able to edit the class attributes.

3/ I saw here :
<i>http://ez.no/developer/forum/setup_design/solved_edit_user_profile_disable_version/re_solved_edit_user_profile_disable_ve</i>

That I could disable the versioning for the front siteaccess, in order to not let the user choose between drafts.

I can't manage it to work, has someone did this before ?

Thank you very much for your time :)

Max Keil

Wednesday 29 July 2009 4:18:02 pm

hi Jeremy,

user/edit/UserID is the right way to show user settings and display the edit button for the user object. When you set user->selfedit in your policies the user can only edit his own profile.

The site.ini-setting

[ContentSettings]
EditDirtyObjectAction=usecurrent

Disables the version view choise for your users for opened drafts. No other settings are needed. Only clearing the caches.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Jeremy B.

Thursday 30 July 2009 12:21:04 am

Hi Max :)

Finally, I got the EditDirtyObjectAction to work... Don't know why it didn't want to work at first, maybe I didn't cleared the cache, or maybe it's because of the extension I created for my site...

I set these rights to the user :

user  	 password  	 Pas de limitations
user 	selfedit 	Pas de limitations
content 	create 	Class( MyUserClass ) , Section( Users ) , ParentOwner( Self ) , ParentGroup( Self )

All seems to be fine then.

Thanks a lot for your time.