Change comment:
Adding info on customizing the registration page
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. jvdrean1 +XWiki.VincentMassol - Content
-
... ... @@ -11,12 +11,10 @@ 11 11 12 12 1. Log in as an administrator. 13 13 1. Click on the *<tt>Administration</tt>* link in the top right corner of the screen to go to the main Administration page. 14 -1. C hoosethe *<tt>Users</tt>*tabto bring up an overview of all users.14 +1. Click on the *<tt>Users</tt>* icon to bring up an overview of all users. 15 15 1. Click on *<tt>Add new user</tt>* button to open a registration page as shown on the image below. 16 16 1. Complete the user information and press the *<tt>Save</tt>* button. 17 17 18 -#info("You can also customize the way users are registered in your xwiki by creating a <tt>XWiki.Registration</tt> page which will override the default registration page.") 19 - 20 20 {image:registeruser.jpg} 21 21 22 22 1.1 Changing a user's password ... ... @@ -25,7 +25,7 @@ 25 25 26 26 1. Log in as an administrator. 27 27 1. Click on the *<tt>Administration</tt>* link in the top right corner of the screen to go to the main Administration page. 28 -1. C hoosethe *<tt>Users</tt>*tabto bring up an overview of all users.26 +1. Click on the *<tt>Users</tt>* icon to bring up an overview of all users. 29 29 1. Click on the name for the user for which to change the password. This lead you to the user's page. 30 30 1. To the URL of the page add the following extension: *<tt>?xpage=passwd</tt>*. 31 31 1. Modify the password and click the *<tt>Update</tt>* button to save your change. Don't forget to tell the user! ... ... @@ -45,11 +45,10 @@ 45 45 46 46 1. Log in as an administrator. 47 47 1. Click on the *<tt>Administration</tt>* link in the top right corner of the screen to go to the main Administration page. 48 -1. C hoosethe *<tt>Users</tt>*tabto bring up an overview of all users.46 +1. Click on the *<tt>Users</tt>* icon to bring up an overview of all users. 49 49 1. You have two options: 50 50 11. Click the user name for the user to edit. 51 -111*. On the user's page click *<tt>Edit</tt>* in the top left corner. This will open a page editing view containing the most common attributes than can be changed. 52 -111*. To edit other attributes, select the *<tt>Objects*</tt>" tab, select the "*<tt>XWiki.XWikiUsers</tt>*" object and edit the entries (name, e-mail, etc...) according to your requirements. 49 +111*. On the user's page click *<tt>on the button corresponding to the information you want to edit (info, password, etc)</tt>*. This will open a page editing view containing the attributes than can be changed. 53 53 111*. Click "*<tt>Save and View*</tt>" - to save the changes you have made. 54 54 11. Click on the pencil icon near the user you want to edit. 55 55 111*. This will open up a lightbox with the main information of that user, which you can edit in place. ... ... @@ -62,7 +62,7 @@ 62 62 63 63 1. Log in as an administrator. 64 64 1. Click on the *<tt>Administration</tt>* link in the top right corner of the screen to go to the main Administration page. 65 -1. C hoosethe *<tt>Users</tt>*tabto bring up an overview of all users.62 +1. Click on the *<tt>Users</tt>* icon to bring up an overview of all users. 66 66 1. Delete the user by using the *<tt>X</tt>* button for the user to delete. The user will automatically be removed from all the groups it belonged to. 67 67 68 68 #info("You won't be able to delete the currently logged in user and you'll need to log using other credentials. This is to prevent mistakes...") ... ... @@ -69,3 +69,16 @@ 69 69 70 70 {image:edituser.jpg} 71 71 69 +1.1 Customizing the Registration page 70 + 71 +You can also customize the way users are registered in your XWiki by creating a <tt>XWiki.Registration</tt> page which will override the default registration page. 72 + 73 +If you don't know what to put in the page you can start by copying the content of <tt>http://<yourserver>/xwiki/templates/registerinline.vm</tt> and paste it in your <tt>XWiki.Registration</tt> page. You'll have to be careful to remove the first test in the template or your registration page will loop forever: 74 +{code:none} 75 +#if(!$xwiki.hasAccessLevel("view","XWiki.Registration")||$xwiki.getDocument("XWiki.Registration").isNew()) 76 +[...] ## here is the code you want to keep 77 +#else 78 +$xwiki.getDocument("XWiki.Registration").getTranslatedDocument().getRenderedContent() 79 +#end 80 +{code} 81 +