Changes for page Sandbox
Last modified by Jip-jan Alunkel on May 29, 22:55
From version 12.1
edited by Jip-jan Alunkel
on April 26, 14:12
on April 26, 14:12
Change comment:
There is no comment for this version
To version 19.1
edited by Jip-jan Alunkel
on May 08, 18:21
on May 08, 18:21
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,7 +1,79 @@ 1 1 2 2 {{velocity}} 3 -#set ($d = $xwiki.getDocument("myPage")) 4 -$d.documentReference 3 +#if ($xcontext.user != 'XWiki.XWikiGuest') 4 + #if ($request.xredirect) 5 + $response.sendRedirect($request.xredirect) 6 + #else 7 + $response.sendRedirect($xwiki.getURL($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('WIKI')))) 8 + #end 9 +#elseif($doc.fullName != 'XWiki.XWikiLogin') 10 + #set($qs = "$!{request.queryString}") 11 + #if(!$request.getParameter('xredirect')) 12 + #set($qs = "xredirect=$escapetool.url($doc.getURL('view'))&${qs}") 13 + #end 14 + $response.sendRedirect($xwiki.getURL('XWiki.XWikiLogin', 'login', $qs)) 15 +#else 16 + 17 +## Login page 18 +##template("startpage.vm") 19 +##<div class="main layoutsubsection"> 20 +##<div id="mainContentArea"> 21 +<form id="loginForm" action="$doc.getURL('loginsubmit')" method="post" class="xform"> 22 + <input type="hidden" name="xredirect" value="$!{escapetool.xml($request.xredirect)}"/> 23 + #if("$!request.srid" != '') 24 + <input type="hidden" name="srid" value="$!escapetool.xml($request.srid)"/> 25 + #end 26 + <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}"/> 27 + 28 + #xwikimessageboxstart($services.localization.render('login') '') 29 + #set($message = $xcontext.message) 30 + #if($message) 31 + <!-- previous login errors --> 32 + #error($services.localization.render($message)) 33 + #end 34 + #set($authFailureStrategyMessage = $services.security.authentication.getErrorMessage($request.j_username)) 35 + #if ("$!authFailureStrategyMessage" != '') 36 + #error($authFailureStrategyMessage) 37 + #end 38 + #set ($supplementaryForm = $services.security.authentication.getForm($request.j_username)) 39 + <label for="j_username">$services.localization.render('username')</label> 40 + #set ($forgotUsernameURL = $services.security.authentication.getAuthenticationURL('retrieveusername', $NULL)) 41 + #if("$!forgotUsernameURL" != "") 42 + <span class="xAdditional"><a href="$forgotUsernameURL" tabindex="500">$services.localization.render('xe.admin.forgotUsername.loginMessage')</a></span> 43 + #end 44 + <span class="input-group"> 45 + <span class="input-group-addon">$services.icon.renderHTML('user')</span> 46 + <input class="form-control" type="text" id="j_username" size="60" name="j_username" value="" tabindex="100"/> 47 + </span> 48 + <label for="j_password">$services.localization.render('password')</label> 49 + #set ($resetPasswordUrl = $services.security.authentication.getAuthenticationURL('resetpassword', $NULL)) 50 + #if("$!resetPasswordUrl" != '') 51 + <span class="xAdditional"><a href="$resetPasswordUrl" tabindex="600">$services.localization.render('xe.admin.passwordReset.loginMessage')</a></span> 52 + #end 53 + <span class="input-group"> 54 + <span class="input-group-addon">$services.icon.renderHTML('lock')</span> 55 + <input type="password" id="j_password" size="60" name="j_password" value="" tabindex="200"/> 56 + </span> 57 + <label class="xHint" for="rememberme"> 58 + <input id="rememberme" type="checkbox" name="j_rememberme" value="true" tabindex="300"/> $services.localization.render('remembermeonthiscomp') 59 + </label> 60 + #if ("$!supplementaryForm" != "") 61 + <div id="dedicated-auth-failures-field"> 62 + $supplementaryForm 63 + </div> 64 + #end 65 + <input type="submit" class="btn btn-primary col-xs-12" value="$services.localization.render('login')" tabindex="400"/> 66 + #xwikimessageboxend() 67 +</form> 68 + 69 +## Ensure that the username field of the login form has the focus to make it easy for users to log in quickly 70 +<script type="javascript"> 71 +//<![CDATA[ 72 + document.forms.loginForm.j_username.focus(); 73 +//]]> 74 +</script> 75 + #template("endpage.vm") 76 +#end 5 5 {{/velocity}} 6 6 7 7 ... ... @@ -107,7 +107,7 @@ 107 107 108 108 You can insert images in your wiki pages: 109 109 110 -image:XWikiLogo.png 182 +[[image:XWikiLogo.png]] 111 111 112 112 = Macros = 113 113 ... ... @@ -117,10 +117,6 @@ 117 117 118 118 This macro allows you to draw users' attention to a specific piece of information: 119 119 120 -{{warning}} 121 -Hello World 122 -{{/warning}} 123 - 124 124 == Table of Contents == 125 125 126 126 This macro automatically generates a table of contents of your wiki page based on headings:
- cases.Code.casesClass[0]
-
- author
-
... ... @@ -1,1 +1,0 @@ 1 -JJ - Remedy
-
... ... @@ -1,1 +1,0 @@ 1 -Ars