Changes for page Standard URL Format

Last modified by Anca Luca on 2023/11/10

From version 95.1
edited by Thomas Mortagne
on 2019/10/18
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.ThomasMortagne
1 +XWiki.VincentMassol
Content
... ... @@ -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