Changes for page Standard URL Format

Last modified by Anca Luca on 2023/11/10

From version 94.1
edited by Simon Urli
on 2019/06/06
Change comment: There is no comment for this version
To version 96.1
edited by Vincent Massol
on 2020/02/26
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.surli
1 +XWiki.VincentMassol
Content
... ... @@ -5,7 +5,7 @@
5 5  The general format of XWiki URLs is {{code language="none"}}<protocol>://<server>/<context path>/<type>/<path>{{/code}}, where:
6 6  
7 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]]
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]].
9 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.
10 10  * ##<type>##: the type of URL depending on the XWiki subsystem accessed. The following types are supported:
11 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).
... ... @@ -42,6 +42,7 @@
42 42  * ##export##: Exports wiki pages to various formats (PDF, HTML, etc). See [[platform:Features.Exports]].
43 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 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##
45 +* [[##objectadd##>>platform:DevGuide.Standard URL Format#HAction:objectadd]]: Adds an XObject, e.g. ##http:~/~/<server>/xwiki/bin/objectadd/Space/Page?classname=Some.XClass##
45 45  
46 46  == Action: ##view## ==
47 47  
... ... @@ -338,6 +338,22 @@
338 338  * ##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).
339 339  * ##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).
340 340  
342 +== Action: ##objectadd## =
343 +
344 +Adds an XObject to the referenced page.
345 +
346 +Examples:
347 +* ##http:~/~/<server>/xwiki/bin/objectadd/Space/Page?classname=Some.XClass##
348 +* ##http:~/~/<server>/xwiki/bin/objectadd/Space/Page?classname=XWiki.XWikiGroups&XWiki.XWikiGroups_member=XWiki.JohnDoe##
349 +
350 +=== Parameter: ##classname## ===
351 +
352 +The full name of the document that holds the class which the object to be added should be instance of. Example: ##XWiki.XWikiGroups##.
353 +
354 +=== Parameter: ##<classname>_<fieldname>## ===
355 +
356 +This is an optional parameter. You can initialize the XObject properties by passing parameter names of the form ##<classname>_<fieldname>##, where ##classname## is the value given in the ##classname## parameter above and ##fieldname## is the name of the xproperty field to initialize. For example: ##XWiki.XWikiGroups_member## (provided that ##XWiki.XWikiGroups## has been given for the mandatory ##classname## parameter).
357 +
341 341  = Type: ##wiki## =
342 342  
343 343  {{info}}

Get Connected