OpenEdit Developer ForumWelcome to the OpenEdit User Forum. You must be registered and logged in to post a new comment or topic. This forum is only for developers who want to discuss the technical aspects of the OpenEdit Framework. For end user technical support please visit the EnterMedia web site. modifiyuser.html .. additionWhat i am trying is simply to be able to modify user properties values for current user outside of User Manager main page (for users with less than admin permissions) .. so i make new page with modifyuser.html parts, but called outside of User Manger .. but now, this page is functional only if user name is passed in calling link, not if user name is defined in page body .. Thanks Posted by Kamil Tresnak Thu, Oct 2 2008 7:59 AM
|
Most Recent Posts
encodings ...
(4 comments)
Slamdance
(7 comments)
Help upgrading jars on starter war
(6 comments)
Help, Velocity Generator not initializing
(4 comments)
Multiple Main Sites
(10 comments)
Search filtering by theme
(3 comments)
xml version "s1.0" error
(4 comments)
How can i localization the openedit?
(3 comments)
Problem with the interface
(4 comments)
latest openedit-editor build
(2 comments) Archive
Log in
Syndicate:
|
Copyright 2008 OpenEdit Inc. All rights reserved. last modified: Oct 02 2008

Kamil, here is what you need to do:
At the top of your new modifyusers.html, add these lines:
#set($userName = $user.getUserName())
#set($selectedUser = $user)
In your new modifyusers.xconf, change the page-action at the bottom to call "User.loadUserSearcher" instead of "User.loadUserProperties".
I also had to copy saveuser.html and saveuser.xconf. In saveuser.xconf, you can delete the User.loadHits action. I also had to change the form in modifyusers.html by making it <form action="saveusers.html"> and changing the save link to a submit button.
When you submit the form to the saveuser page, it still passes the username as a parameter - However, if the passed username does not match the currently logged in user, it will throw an exception.