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
-
... ... @@ -15,8 +15,6 @@ 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 ... ... @@ -68,3 +68,16 @@ 68 68 69 69 {image:edituser.jpg} 70 70 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 +