Wiki source code of Standard URL Format

Version 93.1 by Simon Urli on 2019/06/06

Hide last authors
Manuel Smeria 50.2 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
Thomas Mortagne 1.1 4
Vincent Massol 57.2 5 The general format of XWiki URLs is {{code language="none"}}<protocol>://<server>/<context path>/<type>/<path>{{/code}}, where:
Vincent Massol 56.2 6
Thomas Mortagne 90.1 7 * ##<protocol>##: by default it's ##http##. It's possible to use ##https##. It's generally deduced from the URL used by the client but it's possible to control it using [[the wiki descriptor>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application#HConfigureWiki]]
8 * ##<server>##: the XWiki instance address and port, e.g. ##localhost:8080##, ##xwiki.org##. In domain-mode the server also contains the subwiki name. See [[Accessing a wiki>>platform:AdminGuide.AccessWiki]]. In path-based mode, the server is the address of the main wiki. Since 10.7 it's possible to customize the port to use in the [[the wiki descriptor>>https://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application#HConfigureWiki]]
Vincent Massol 57.3 9 * ##<context path>##: the name under which the XWiki web application is deployed in your Servlet Container, e.g. ##xwiki##. See [[Short URLs>>platform:Main.ShortURLs#HI.Applicationname]] if you wish to deploy XWiki as ROOT.
Vincent Massol 56.2 10 * ##<type>##: the type of URL depending on the XWiki subsystem accessed. The following types are supported:
Vincent Massol 56.5 11 ** ##bin##: points to a dynamic resource. Examples: an Entity to display (wiki, page, space, attachment, object, property, etc), a dynamic skin resource (image, css, js), a dynamic template resource (image, js, css, icon, etc) and more. By dynamic we mean that some computation needs to happen to compute the resource (for example some Velocity needs to be evaluated).
Vincent Massol 88.3 12 ** ##wiki##: this is similar to ##bin## but specifying the subwiki to access, in path-based mode (See [[Accessing a wiki>>platform:AdminGuide.AccessWiki]]).
13 ** ##rest##: points to a [[REST Resource>>platform:Features.XWikiRESTfulAPI]]
Vincent Massol 57.4 14 ** ##skins##: points to a static filesystem skin resource (image, js, css, etc), i.e. a resource located inside a skin directory on the filesystem.
15 ** ##resources##: points to a static template resource (image, js, css, etc) on the filesystem.
Vincent Massol 75.3 16 ** ##xmlrpc##: points to the now deprecated XMLRPC API (see [[extensions:Extension.XML-RPC Integration]] for more details).
Vincent Massol 56.5 17 ** ##webdav##: points to a WebDAV resource (see [[Web DAV>>platform:Features.WebDAV]] for more details).
Vincent Massol 56.2 18 * ##<path>##: the path completely depends on the ##<type>## used. See below for more details.
19
Vincent Massol 56.10 20 {{info}}
Marius Dumitru Florea 89.1 21 If you're interested in configuring the XWiki URLs, check the [[URL Architecture page>>Documentation.DevGuide.Architecture.URL Architecture.WebHome]].
Vincent Massol 56.10 22 {{/info}}
23
Vincent Massol 56.9 24 = Type: ##bin## =
Vincent Massol 56.2 25
Eduard Moraru 64.2 26 {{info}}
27 XWiki 7.2: Added support for Nested Spaces
28 {{/info}}
Vincent Massol 62.1 29
Vincent Massol 57.5 30 There are various ##bin## URLs. The generic format of ##bin## URLs is ##bin/<action>/<path>##. The full list of ##<action>## is defined in the Strut Configuration file (located in ##WEB-INF/struts-config##).
Vincent Massol 56.2 31
Vincent Massol 56.5 32 Here are some well-known actions:
Eduard Moraru 57.7 33
Vincent Massol 88.3 34 * [[##skin##>>platform:DevGuide.Standard URL Format#HAction:skin]]: Dynamic Skin resource, e.g. ##http:~/~/<server>/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.css##
35 * ##jsx##: [[Javascript Skin Extension>>platform:DevGuide.SkinExtensionsTutorial]] URL, e.g. ##http:~/~/<server>/xwiki/bin/jsx/AnnotationCode/Settings?language=en##
36 * ##ssx##: [[StyleSheet Skin Extension>>platform:DevGuide.SkinExtensionsTutorial]] URL, e.g. ##http:~/~/<server>/xwiki/bin/ssx/AnnotationCode/Style?language=en##
Vincent Massol 57.6 37 * ##webjars##: URL when [[accessing some resources located in a WebJar>>extensions:Extension.WebJars Integration]], e.g. ##http:~/~/<server>/xwiki/bin/webjars/resources/path?value=requirejs%2F2.1.15%2Frequire.min.js##
Vincent Massol 88.3 38 * [[##download##>>platform:DevGuide.Standard URL Format#HAction:download]]: URL to access an attachment from a wiki page, e.g. ##http:~/~/<server>/xwiki/bin/download/XWiki/JohnDoe/john.png?width=30&height=30&keepAspectRatio=true##
39 * [[##view##>>platform:DevGuide.Standard URL Format#HAction:view]]: Display Entity content (wiki, page, space, attachment, object, property, etc) with the skin applied, e.g. ##http:~/~/<server>/xwiki/bin/view/Sandbox/WebHome##
Vincent Massol 57.6 40 * ##edit##: Edits wiki content (page, object, property, etc), e.g. ##http:~/~/<server>/xwiki/bin/edit/Sandbox/WebHome##
Vincent Massol 88.3 41 * [[##get##>>platform:DevGuide.Standard URL Format#HAction:get]]: Accessing Entity content (wiki, page, space, attachment, object, property, etc) without any skin applied, e.g. ##http:~/~/<server>/xwiki/bin/get/Main/WebHome?xpage=xpart&vm=commentsinline.vm##. The ##get## action should be used to render the content of the page and nothing else (mainly used for code pages). This action is similar to the ##view## action, but without the UI and with "text/plain" mime type set by default for the response.
Vincent Massol 56.8 42 * ##export##: Exports wiki pages to various formats (PDF, HTML, etc). See [[platform:Features.Exports]].
Vincent Massol 88.3 43 * [[##viewrev##>>platform:DevGuide.Standard URL Format#HAction:viewrev]]: This action is the same as the ##view## action but allowing to address a given revision of the document asked.
44 * [[##create##>>platform:DevGuide.Standard URL Format#HAction:create]]: Provides the UI for creating new documents, e.g. ##http:~/~/<server>/xwiki/bin/create/Space/NewDocument##
Vincent Massol 56.5 45
Vincent Massol 56.9 46 == Action: ##view## ==
Vincent Massol 56.7 47
Vincent Massol 62.1 48 The additional URL paths for the ##view## action is ##<space1>/.../<spaceN>/<page>?<query string>## or ##<space1>/.../<spaceN>?<query string>##
Vincent Massol 56.7 49
50 Examples:
Eduard Moraru 57.7 51
Vincent Massol 57.6 52 * ##http:~/~/<server>/xwiki/bin/view/Sandbox/WebHome##: Views the ##Sandbox.WebHome## page.
Vincent Massol 62.1 53 * ##http:~/~/<server>/xwiki/bin/view/Sandbox##: Views the ##Sandbox.WebHome## page.
Eduard Moraru 86.1 54 * ##http:~/~/<server>/xwiki/bin/view/Space1/Space2##: Views the ##Space1.Space2.WebHome## page (if the ##Space2## page doesn't exist. If it exists then it views the ##Space1.Space2## page).
55 * ##http:~/~/<server>/xwiki/bin/view/Space1/Space2/##: Force to always views the ##Space1.Space2.WebHome## page (even if the ##Space2## page exists in the ##Space1## space. Note the ##/## at the end).
Eduard Moraru 86.2 56 * ##http:~/~/<server>/xwiki/bin/view/Space1/Space2?spaceRedirect=false##: Force to always view the ##Space1.Space2## terminal page (even if the ##Space1.Space2.WebHome## page exists and even if the ##Space1.Space2## page may not exist).
Vincent Massol 56.7 57
Vincent Massol 56.8 58 Here are some of the supported query string parameters.
Vincent Massol 56.2 59
Vincent Massol 56.9 60 === Parameter: ##xpage## ===
Vincent Massol 56.2 61
Vincent Massol 77.1 62 * ##plain##: this value indicates that only the content of the page is printed (no UI). With a document that's not using the XWiki Syntax 1.0 you can control the output syntax using ##outputSyntax## and ##outputSyntaxVersion##. You can also pass other parameters to allow fine-grained control:
Vincent Massol 50.1 63 ** ##raw=1##: Returns the page source as is without any formatting but XML-escaped
64 ** ##raw=2##: Returns the page source as is without any formatting (without any escaping)
Guillaume Delhumeau 55.1 65 ** ##htmlHeaderAndFooter=true##: {{info}}Since 6.3RC1{{/info}} Display the HTML headers (##<html>##,##<head>##,##<body>##, etc...) and footers (##</body>##, ##</html>##, etc...).
Vincent Massol 77.1 66 ** ##outputTitle##: {{info}}Since 7.3M2{{/info}} If ##true## then also display the title in addition to the content. Defaults to ##false## if not specified.
Vincent Massol 50.1 67 * ##xml##: print the exported form of a document. This is what you can find in the xar for each document.
Vincent Massol 51.1 68 * ##rev##: when specified, redirects to the ##viewrev## action (see below)
Guillaume Delhumeau 74.1 69 * ##children##: {{info}}Since 7.2M3{{/info}} display a page that lists all the children of the document. You can also add the following parameters:
Guillaume Delhumeau 71.1 70 ** ##hierarchy=parentchild##: do the same but display the children according to the (old) parent/child mechanism
Guillaume Delhumeau 74.1 71 ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
72 * ##backlinks##: {{info}}Since 7.2M3{{/info}} display a page that lists all the documents having a link to the current document. You can also add the following parameters:
73 ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
Guillaume Delhumeau 75.1 74 * ##siblings##: {{info}}Since 7.2RC1{{/info}} display a page that lists all the children of the parent of the document. You can also add the following parameter:
75 ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
Guillaume Delhumeau 78.1 76 * ##hierarchy_reference##: {{info}}Since 7.3M2{{/info}} display the hierarchy of the page, as raw HTML, without any style. You can also add the following parameters:
Guillaume Delhumeau 76.1 77 ** ##id=someId##: add an HTML id to the hierarchy breadcrumb.
Guillaume Delhumeau 78.1 78 ** ##displayTitle=true|false##: display the title of the elements in the breadcrumb (default: true)
Guillaume Delhumeau 80.1 79 ** ##excludeSelf=true|false##: display the hierarchy without the page itself (default: false)
80 ** ##limit=##: maximum number of hierarchy elements displayed (default: none)
81 ** ##local=true|false##: do not display the main wiki reference for documents located in sub-wikis. (default: false)
Thomas Mortagne 44.1 82
Vincent Massol 56.9 83 === Parameter: ##outputSyntax## and ##outputSyntaxVersion## ===
Thomas Mortagne 44.1 84
Vincent Massol 56.8 85 With a document that's not using the XWiki 1.0 syntax it's possible to explicitly indicate the renderer to use for the page content. For example with ##outputSyntax=plain## you will get the result in plain text. ##outputSyntaxVersion## is an optional parameter, if it's not provided XWiki will search for the last version of the renderer for the given ##outputSyntax## syntax name. Note that ##outputSyntax## controls only the document content output syntax. If you only want the document content you can use ##xpage=plain##.
Thomas Mortagne 48.1 86
Manuel Smeria 50.2 87 See [[extensions:Extension.Rendering Module]] for more details on renderers.
Thomas Mortagne 45.1 88
Guillaume Delhumeau 70.1 89 === Parameter: ##viewer## ===
90
Guillaume Delhumeau 72.1 91 Note: if the document does not exist, you will have a 404 error page, and the following parameters will not be taken into account. Use ##xpage## if you need to have the desired behavior even if the document does not exist.
Guillaume Delhumeau 71.1 92
Vincent Massol 89.2 93 * ##attachments##: Display the attachment list (e.g. ##http:~/~/playground.xwiki.org/xwiki/bin/view/Sandbox/?viewer=attachments##)
94 * ##history##: Display the version history (e.g. ##http:~/~/playground.xwiki.org/xwiki/bin/view/Sandbox/?viewer=history##)
95 * ##comments##: Display the comments (e.g. ##http:~/~/playground.xwiki.org/xwiki/bin/view/Sandbox/?viewer=comments##)
96 * ##information##: Display the page information (e.g. ##http:~/~/playground.xwiki.org/xwiki/bin/view/Sandbox/?viewer=information##)
Guillaume Delhumeau 74.1 97 * ##children##: {{info}}Since 7.2RC1{{/info}} display a page that lists all the children of the document. You can also add the following parameters:
Guillaume Delhumeau 70.1 98 ** ##hierarchy=parentchild##: do the same but display the children according to the (old) parent/child mechanism
Guillaume Delhumeau 74.1 99 ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
100 * ##backlinks##: {{info}}Since 7.2RC1{{/info}} display a page that lists all the documents having a link to the current document. You can also add the following parameter:
101 ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
Guillaume Delhumeau 75.1 102 * ##siblings##: {{info}}Since 7.2RC1{{/info}} display a page that lists all the children of the parent of the document. You can also add the following parameter:
103 ** ##displayHidden=true##: display the hidden documents (no matter what the user's configuration is)
Guillaume Delhumeau 70.1 104
Eduard Moraru 86.1 105 === Parameter: ##spaceRedirect## ===
106
107 Accepted values:
Vincent Massol 88.1 108
Eduard Moraru 86.1 109 * ##true## (default): By default, an URL not ending in ##/## resolves to a non-terminal page, unless the equivalent terminal page already exists.
110 * ##false##: An URL not ending in ##/## will always resolve to a terminal page.
111
112 Not applicable (i.e. no effect) for top-level pages and URLs ending in ##/##.
113
114 Examples:
Vincent Massol 88.1 115
Eduard Moraru 86.1 116 * ##http:~/~/<server>/xwiki/bin/view/Space1/Space2[?spaceRedirect=true]##: Views the ##Space1.Space2.WebHome## page (if the ##Space2## page doesn't exist. If it exists then it views the ##Space1.Space2## page).
Eduard Moraru 86.2 117 * ##http:~/~/<server>/xwiki/bin/view/Space1/Space2?spaceRedirect=false##: Force to always view the ##Space1.Space2## terminal page (even if the ##Space1.Space2.WebHome## page exists and even if the ##Space1.Space2## page may not exist).
Eduard Moraru 86.1 118 * ##http:~/~/<server>/xwiki/bin/view/Space1[?spaceRedirect=false|?spaceRedirect=true|/]##: Will always view the ##Space1.WebHome## non-terminal page because it is a top level page and we can never have a top-level terminal page.
119
Simon Urli 92.1 120 === Parameter: ##restricted## ===
121
122 Accepted values:
Simon Urli 93.1 123
Simon Urli 92.1 124 * ##false## (default): the macro transformations are normally executed
125 * ##true##: macro transformations are executed in degraded mode or not executed at all, depending on the macro implementation.
126
Simon Urli 93.1 127 In particular, various scripting macro such as [[Velocity Macro>>extensions:Extension.Velocity Macro]] or [[Groovy Macro>>extensions:Extension.Groovy Macro]] are not executed in restricted mode.
Simon Urli 92.1 128 This parameter might be then use to check if a page is well displayed for user who cannot execute those scripts for example.
129
Vincent Massol 56.9 130 == Action: ##viewrev## ==
Thomas Mortagne 45.1 131
Vincent Massol 56.9 132 === Parameter: ##rev## ===
Silvia Macovei 49.1 133
Vincent Massol 57.6 134 The version to get, e.g. ##2.3## in ##http:~/~/<server>/xwiki/bin/viewrev/MySpace/MyPage?rev=2.3##
Silvia Macovei 49.1 135
Jean SIMARD 56.11 136 == Action: ##save## ==
137
138 The additional URL paths for the ##save## action is ##<space>/<page>?<query string>##.
139
140 Examples:
Eduard Moraru 57.7 141
Vincent Massol 57.6 142 * ##http:~/~/<server>/xwiki/bin/save/Sandbox/WebHome##: Save the ##Sandbox.WebHome## page.
Jean SIMARD 56.11 143
144 Here are some of the supported query string parameters.
145
146 === Parameter: ##creator## ===
Eduard Moraru 57.7 147
Jean SIMARD 56.11 148 Change the creator of the current page. Should be a string as a Document Reference like ##JohnDoe##, ##XWiki.JohnDoe## or ##xwiki:XWiki.JohnDoe## which is a page containing an ##XWiki.Users## object.
149
150 === Parameter: ##language## ===
Eduard Moraru 57.7 151
Vincent Massol 88.6 152 Will target a specific language. You must use a specific 2-letters code (see [[I18N>>platform:Features.I18N]]).
Jean SIMARD 56.11 153
Jean SIMARD 56.12 154 === Parameter: ##objectPolicy## ===
Eduard Moraru 57.7 155
Vincent Massol 88.3 156 {{info}}Since 7.1M1{{/info}} The ##objectPolicy## parameter is a request configuration parameter that will decide how to handle custom query string parameters (see [[Custom Parameters>>platform:DevGuide.Standard URL Format#HCustomParameters]]):
Jean SIMARD 56.12 157
Eduard Moraru 57.7 158 * ##update##
159 ** Each custom parameter will update a property in an existing object of the current page.
160 ** If the custom parameter refers to a property or an object that don't exist, it will simply ignore it.
161 * ##updateOrCreate##
162 ** Each custom parameter will update a property in an existing object of the current page.
163 ** If the custom parameter refers to a property that doesn't exist, it will ignore it.
164 ** If the custom parameter refers to an object that doesn't exist, it will create it (and pad will ##null## objects if needed).(((
165 //Example//: If there is already 2 objects ##XWiki.XWikiRights## in the page, ##XWiki.XWikiRights_0_levels## and ##XWiki.XWikiRights_1_levels## will update these existing objects. ##XWiki.XWikiRights_2_levels## and ##XWiki.XWikiRights_3_levels## will create 2 new objects. ##XWiki.XWikiRights_42_levels## will be created and 37 empty objects too (42 minus the 4 already existing and minus the 42th which will be created).
166 //Note//: All this information about empty/null objects is currently an implementation detail of how we currently handle object numbers and it may be subject to future change so, as much as possible, do not rely on it and, instead, use the public available APIs to handle these things.
167 )))
168
Jean SIMARD 56.11 169 === Parameter: ##parent## ===
Eduard Moraru 57.7 170
Jean SIMARD 56.11 171 Allows you to set the parent of the page. Should be a string as a Document Reference like ##WebHome##, ##Main.WebHome## or ##xwiki:Main.WebHome##.
172
173 === Parameter: ##syntaxId## ===
Eduard Moraru 57.7 174
Jean SIMARD 56.11 175 Specify which syntax is used for the content of the current page (see [[Supported syntaxes>>http://rendering.xwiki.org/xwiki/bin/view/Main/#HSupportedSyntaxes]]).
176
177 === Parameter: ##template## ===
Eduard Moraru 57.7 178
Jean SIMARD 56.11 179 Allows you to have a specific template to apply for the current page. Should be a string as a Document Reference like ##MyTemplate##, ##Main.MyTemplate## or ##xwiki:Main.MyTemplate##.
180
181 === Parameter: ##title## ===
Eduard Moraru 57.7 182
Jean SIMARD 56.11 183 Allows you to modify the title of the page.
184
Jean SIMARD 56.14 185 === Custom Parameters ===
Eduard Moraru 57.7 186
Jean SIMARD 56.14 187 Custom parameters have the format ##<Space>.<ClassPage>_<number>_<propertyname>## (e.g. ##XWiki.XWikiUsers_0_password## or ##XWiki.WatchListClass_3_interval##):
Eduard Moraru 57.7 188
Jean SIMARD 56.14 189 * ##<Space>## must refer to an existing space of the wiki
190 * ##<ClassPage>## must refer to a class
191 * ##<number>## is a positive number
192 * ##<propertyname>## is a name of a property of the class ##<Space>.<ClassPage>##
193
Jean SIMARD 56.15 194 == Action: ##inline## ==
Eduard Moraru 57.7 195
Jean SIMARD 56.15 196 The additional URL paths for the ##inline## action is ##<space>/<page>?<query string>##.
197
198 Examples:
Eduard Moraru 57.7 199
Vincent Massol 57.6 200 * ##http:~/~/<server>/xwiki/bin/inline/Sandbox/WebHome##: Edit in inline mode the ##Sandbox.WebHome## page.
Jean SIMARD 56.15 201
Vincent Massol 88.3 202 For the supported query string parameters, you can refer to the [[##save## action>>platform:DevGuide.Standard URL Format#HAction:save]].
Jean SIMARD 56.15 203
Vincent Massol 56.9 204 == Action: ##get## ==
Vincent Massol 51.1 205
Vincent Massol 56.9 206 === Parameter: ##htmlHeaderAndFooter## ===
Oana Florea 52.1 207
Vincent Massol 56.8 208 {{info}}Since 6.3RC1{{/info}} If ##htmlHeaderAndFooter=true## is passed then display the HTML headers (##<html>##,##<head>##,##<body>##, etc...) and footers (##</body>##, ##</html>##, etc...).
Guillaume Delhumeau 53.1 209
Vincent Massol 61.1 210 == Action: ##download## ==
211
Vincent Massol 63.1 212 The additional URL paths for the ##download## action is ##<space1>/.../<spaceN>/<page>/<attachment>?<query string>##.
213
214 Example:
215
216 * ##http:~/~/<server>/xwiki/bin/download/Space1/Space2/WebHome/image.png##: Views the ##image.png## attachment located in the ##Space1.Space2.WebHome## page.
217
Vincent Massol 61.1 218 === Parameter: ##force-download## ===
219
220 If set, force the attachment to be downloaded instead of being opened in the browser (it sets the ##Content-Disposition## header to ##attachment## instead of ##inline##).
221
Simon Urli 91.1 222 == Action: ##downloadrev## ==
223
224 The additional URL paths for the ##downloadrev## action is ##<space1>/.../<spaceN>/<page>/<attachment>?<query string>##.
225
226 Example:
227
228 * ##http:~/~/<server>/xwiki/bin/downloadrev/Space1/Space2/WebHome/image.png?rev=1.2##: Views the revision ##1.2## of ##image.png## attachment located in the ##Space1.Space2.WebHome## page.
229
230 === Parameter: ##rev## ===
231
232 The version to get, e.g. ##1.2## in ##http:~/~/<server>/xwiki/bin/downloadrev/Space1/Space2/WebHome/image.png?rev=1.2##
233
234 === Parameter: ##force-download## ===
235
236 If set, force the attachment to be downloaded instead of being opened in the browser (it sets the ##Content-Disposition## header to ##attachment## instead of ##inline##).
237
Eduard Moraru 64.1 238 == Action: ##create## ==
239
240 The additional URL paths for the create action is ##<space1>/.../<spaceN>/<page>?<query string>##.
241
242 Examples:
243
244 http:~/~/<server>/xwiki/bin/create/Space1/Space2/NewPage: UI for creating the Space1.Space2.NewPage document (also known as a terminal document).
245 http:~/~/<server>/xwiki/bin/create/Space1/Space2/WebHome: UI for creating the Space1.Space2.WebHome document (which is also known as a space homepage or a non-terminal document).
Eduard Moraru 85.2 246 http:~/~/<server>/xwiki/bin/create/Main/WebHome: Generic UI for creating a new document (asking for location and document name since Main.WebHome already exists)
Eduard Moraru 64.1 247
248 Here are some of the supported query string parameters.
249
250 === Parameter: ##spaceReference## ===
251
252 {{info}}Since 7.2M1{{/info}} A local reference string serialization of the space in which to create the new document, e.g. "Space1.Space2"
253
Eduard Moraru 64.2 254 //Note//: Since it's a serialized string reference, entity names need to be already escaped. For a space name "A.B", the equivalent local space reference would be "A\.B". Another example of serialized local space reference would be "A\.B.C\.D", meaning space "C.D" inside space "A.B". See the [[extensions:Extension.Model Module]]'s documentation for more information on EntityReferences.
Eduard Moraru 64.1 255
256 === Parameter: ##name## ===
257
Eduard Moraru 64.3 258 {{info}}Since 7.2M1{{/info}} A string representing the name of the new entity, e.g. "NewDocument".
Eduard Moraru 64.1 259
Eduard Moraru 64.3 260 Depending on the type of document to create, this will be used as:
261
262 * a space name, when creating non-terminal documents, e.g. spaceReference=Space&name=Page results in creating "Space.Page.WebHome"
263 * a document name, when creating terminal documents, e.g. spaceReference=Space&name=Page&tocreate=terminal results in creating "Space.Page"
264
Eduard Moraru 64.1 265 === Parameter: ##tocreate## ===
266
267 Accepted values:
Eduard Moraru 64.2 268
Eduard Moraru 64.3 269 * empty or not specified:
Eduard Moraru 64.5 270 ** if the current document does not exist, a terminal document will be created having the current document's reference, e.g. ##/create/Space/NewPage## creates "Space.NewPage"
271 ** if the current document exists, the new document (specified using the ##spaceReference## + ##name## parameters pair) is created as a non-terminal document, e.g. ##/create/Main/WebHome?spaceReference=Space&name=NewPage## creates "Space.NewPage.WebHome".
272 ** {{warning}}Deprecated since 7.2M1{{/warning}} if the current document exists, the new document (specified using the deprecated ##space## + ##pageName## parameters pair) is created as a terminal document, e.g. ##/create/Main/WebHome?space=Space&page=NewPage## creates "Space.NewPage".
Eduard Moraru 64.1 273 * "terminal" - forces the new document to be a terminal document.
274 ** Example: If "Space1.Space2.Page" is to be created, then it is already a terminal document and is not affected in any way by this setting, but if "Space1.Space2.WebHome" is to be created then it would be a non-terminal document by default. In this later case, specifying the tocreate=terminal parameter would force the creation of a terminal document instead, result in the creation of ##Space1.Space2## (i.e. the page named "Space2" in the space "Space1"), effectively going up one level in the Nested Spaces hierarchy.
275 ** In the case of a top level space's WebHome document (e.g. "Space.WebHome"), this setting is ignored, since the top limit of the hierarchy is reached and there is nowhere else to go up. The resulting document to be created is thus "Space.WebHome".
Eduard Moraru 64.4 276 * "space" - {{warning}}Deprecated since 7.2M1{{/warning}} The document to be created will always be a space WebHome (a.k.a a non-terminal document). This value is considered only when used in conjunction with the deprecated ##space## parameter. In this case, the deprecated ##page## parameter is completely ignored. For example: ##tocreate=space&space=MySpace## will result in "MySpace.WebHome".
Eduard Moraru 64.1 277
Eduard Moraru 64.6 278 === Parameter: ##template## ===
279
280 A string serialized document reference of the document to use as template when creating the new document.
281
282 If empty, the new document will be a blank page.
283
284 If not specified, and existing template providers are available to choose from in the current space and the ##templateprovider## parameter is also not specified, no document will be created yet and the create UI will show up asking the user to choose a template provider from a list.
285
286 This parameter has precedence over the ##templateprovider## parameter, meaning that if both are specified, the ##templateprovider## will be ignored.
287
288 === Parameter: ##templateprovider## ===
289
290 A string serialized document reference of the template provider document to use when creating the new document. The actual template document to use will be extracted from the specified template provider.
291
292 If the specified template provider is not allowed to be used in the space where the new document is created, then the create UI will be displayed with an error.
293 //Note//: This check is done for the ##spaceReference## of the new document to be created. Example: If we are creating the terminal document "Space.NewPage", the check is done for the space "Space". However, if we are creating the non-terminal document "Space.NewPage.WebHome", the check is done for the non-terminal document's space "Space" and not for actual document's reference space "NewPage".
294
295 If empty, the new document will be a blank page.
296
297 If not specified, and existing template providers are available to choose from in the current space and the ##template# parmeter is also not specified, no document will be created yet and the create UI will show up asking the user to choose a template provider from a list.##
298
299 If both this parameter and the ##template## parameter are specified, the ##template## parameter will be used instead of and this parameter will be ignored.
300
Eduard Moraru 64.7 301 === Parameter: ##title## ===
302
303 A string to use as the title of the new document.
304
305 === Parameter: ##parent## ===
306
307 {{warning}}Deprecated since 7.2M1{{/warning}} A string serialized document reference of the document to use as parent for the new document.
308
Eduard Moraru 64.1 309 === Parameter: ##space## ===
310
311 {{warning}}Deprecated since 7.2M1{{/warning}} A string representing an unescaped space name where the new document will be created, Example: "MySpace", "SpaceNameWith.Dots", etc.
312
Eduard Moraru 64.2 313 //Note//: Because this is just a space name and not a space local reference, only top level space documents can be created, i.e. "TopLevelSpace.Document" is possible but not "TopLevelSpace.SecondLevelSpace.Document".
Eduard Moraru 64.1 314
315 === Parameter: ##pageName## ===
316
317 {{warning}}Deprecated since 7.2M1{{/warning}} A string representing the name of the new document. Example: "NewDocument"
318
Eduard Moraru 64.2 319 //Note//: When using ##tocreate=space## in conjunction with the ##space## parameter, this parameter will be ignored and the document "<space>.WebHome" will be created.
Eduard Moraru 64.1 320
Vincent Massol 65.1 321 == Action: ##skin## ==
322
Thomas Mortagne 87.1 323 Right now dynamic Skin Resources are handled as Entity Resources ([[which is not correct>>https://jira.xwiki.org/browse/XWIKI-12449]]).
Vincent Massol 65.1 324
Vincent Massol 66.1 325 The additional URL paths for the ##skin## action is
Guillaume Delhumeau 68.1 326
Vincent Massol 66.1 327 * ##<filesystem path to resource>?<optional query string>## for Filesystem-based Skins
328 * ##<space1>/.../<spaceN>/<page>/<attachment name>## for a resource attached to a wiki page. Note that Velocity is executed only if the attachment has a CSS or Javascript extension name.
329 * ##<space1>/.../<spaceN>/<page>/<xobject property name>## for Skins defined in wiki pages and having an ##XWiki.XWikiSkins## xobject with a property named ##<xobject property name>##. Note that Velocity is executed only if the ##<xobject property name>## name has a CSS or Javascript extension name.
Vincent Massol 65.1 330
331 Examples:
332
Vincent Massol 67.1 333 * ##http:~/~/<server>/xwiki/bin/skin/skins/flamingo/style.css?skin=XWiki.DefaultSkin&colorTheme=playground%3AFlamingoThemes.Charcoal##: Points to the ##style.css## resource located in the ##[xwiki webapp location]/skins/flamingo## directory on the filesystem (and if not found look for the resource in the base skin and default base skin).
Vincent Massol 65.1 334 * ##http:~/~/<server>/xwiki/bin/skin/resources/uicomponents/search/searchSuggest.css##: Points to the ##searchSuggest.css## resource located in the ##[xwiki webapp location]/resources/uicomponents/search## directory on the filesystem.
Vincent Massol 67.1 335 * ##http:~/~/<server>/xwiki/bin/skin/uicomponents/search/searchSuggest.css##: Similar as just above except that the ##resources## part has been omitted and if the resource doesn't exist in ##[xwiki webapp location]/uicomponents/search## then it's also searched for in ##[xwiki webapp location]/resources/uicomponents/search##
336 * ##http:~/~/<server>/xwiki/bin/skin/XWiki/DefaultSkin/somefile.css##: Points to the ##somefile.css## attachment in the ##XWiki.DefaultSkin## wiki page (and if not found look for the resource in the base skin and default base skin).
337 * ##http:~/~/<server>/xwiki/bin/skin/XWiki/DefaultSkin/edit.vm##: Points to the content of the ##edit.vm## property in the ##XWiki.XWikiSkins## xobject in the ##XWiki.DefaultSkin## wiki page (and if not found look for the resource in the base skin and default base skin).
Vincent Massol 65.1 338
Vincent Massol 56.9 339 = Type: ##wiki## =
Vincent Massol 56.8 340
Eduard Moraru 64.2 341 {{info}}
342 XWiki 7.2: Added support for Nested Spaces
343 {{/info}}
Vincent Massol 62.1 344
Vincent Massol 56.8 345 The format is ##wiki/<wiki name>/<bin subpath>## where:
Eduard Moraru 57.7 346
Vincent Massol 56.8 347 * ##<wiki name>##: the name of the subwiki, e.g. ##platform##.
Sergiu Dumitriu 81.1 348 * ##<bin subpath>##: the same path as for the ##bin## action (see above). For example, if you use ##http:~/~/<main wiki server>/xwiki/bin/download/XWiki/JohnDoe/john.png## you would use ##http:~/~/<main wiki server>/xwiki/wiki/<subwiki name>/download/XWiki/JohnDoe/john.png## to access the same attachment but located in a subwiki named ##<subwiki>##.
Vincent Massol 56.8 349
Vincent Massol 56.9 350 = Type: ##resources## =
Vincent Massol 56.8 351
Vincent Massol 57.6 352 Static template resources, e.g. ##http:~/~/<server>/xwiki/resources/js/prototype/prototype.js##.
Vincent Massol 56.8 353
Vincent Massol 56.9 354 = Type: ##skins## =
Vincent Massol 56.8 355
Vincent Massol 57.6 356 Static skin resources, e.g. ##http:~/~/<server>/xwiki/skins/flamingo/logo.png##.
Sergiu Dumitriu 81.1 357
358 = Type: ##temp## =
359
360 Dynamic temporary resources, bound to a specific document and a specific module.
361
362 The format is ##temp/<Space>/<Document>/<module>/<file.ext>##, where:
363
364 * ##<Space>## and ##<Document>## identify the target document; currently only the last part of the space is supported
365 * ##<module>## is the name of the module that generated the resource, a short string used for avoiding conflicts between different modules generating temporary files with the same name
366 * ##<file.ext>## is the name of the temporary file
367
368 == Parameter: ##force-download## ==
369
370 If set to ##1##, force the file to be downloaded instead of being opened in the browser (it sets the ##Content-Disposition## header to ##attachment##).
Thomas Mortagne 84.1 371
372 == Parameter: ##force-filename## ==
373
374 [since 9.0RC1]
375
376 If ##force-download## is set, the value of ##force-filename## is used in the ##Content-disposition## HTTP header to indicate the name of the file to the browser.
Thomas Mortagne 85.1 377
378 = Resource Handler based types =
379
380 Since 6.1 any extension can dynamically register (as components) "resource handlers" (not to mix with the "resources" type).
381
Simon Urli 93.1 382 See [[known resource types>>extensions:Extension.Resource API#\#HKnownResourceTypes]]

Get Connected