Monday 01 September 2003 12:22:51 am
I have problems editing the user that way. It is the best way, programmatically. The code seems to fail when it checks whether the user can be edited when given the correct user id (user/edit/80, for example). I get better results by editing the content object directly, as a user is simply a content object. This code gives you an idea how to do this from a form in a template. Sometimes the variable $current_user is set in your current namespace. If not you can fetch it as I have shown. Note, you can test this just by typing a url directly into your browser... :) {let current_user=fetch('user','current_user')} <form name="MyForm" method="post" action="{concat('/content/edit/', $current_user.contentobject_id,'/')}"> <input type="submit" name="NewButton" value="Edit user"/> </form> Paul
|