[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.

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 10:25:32
Script start
Timing: Jan 18 2025 10:25:32
Module start 'layout'
Timing: Jan 18 2025 10:25:32
Module start 'content'
Timing: Jan 18 2025 10:25:33
Module end 'content'
Timing: Jan 18 2025 10:25:33
Script end

Main resources:

Total runtime0.7520 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 587.9141152.6250
Module start 'layout' 0.00670.0022 740.539139.4609
Module start 'content' 0.00890.7418 780.0000538.3125
Module end 'content' 0.75070.0013 1,318.312512.1563
Script end 0.7520  1,330.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4286160.0002
Check MTime0.00120.1621160.0001
Mysql Total
Database connection0.00180.241210.0018
Mysqli_queries0.694892.3855570.0122
Looping result0.00050.0670550.0000
Template Total0.720295.820.3601
Template load0.00210.279820.0011
Template processing0.718195.485620.3590
Template load and register function0.00010.015710.0001
states
state_id_array0.00100.132810.0010
state_identifier_array0.00140.186420.0007
Override
Cache load0.00180.2342310.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076120.0003
Fetch class attribute name0.00170.221640.0004
XML
Image XML parsing0.00070.088720.0003
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00070.0946160.0000
String conversion0.00000.000840.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
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs