Changes for page XWiki JavaScript API

Last modified by Simon Urli on 2022/09/14

From version 28.1
edited by Guillaume Delhumeau
on 2015/05/28
Change comment: There is no comment for this version
To version 30.1
edited by Guillaume Delhumeau
on 2015/05/28
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -201,7 +201,7 @@
201 201  {{code language="javascript"}}
202 202  require(['xwiki-meta'], function (xm) {
203 203   xm.document // get the current document (eg: Main.WebHome)
204 - xm.wiki // get the current wiki (eg: xwiki)
204 + xm.wiki // get the current wiki (eg: xwiki)
205 205   xm.space // get the current space (eg: Main)
206 206   xm.page // get the current page name (eg: WebHome)
207 207   xm.version // get the current document version (eg: 1.1)
... ... @@ -229,5 +229,5 @@
229 229   var version = xm ? xm.version : $('meta[name="version"]').attr('content');
230 230   var restURL = xm ? xm.restURL : $('meta[name="restURL"]').attr('content');
231 231   var form_token = xm ? xm.form_token : $('meta[name="form_token"]').attr('content');
232 -}
232 +});
233 233  {{/code}}

Get Connected