Changes for page Livetable Macro

Last modified by Marius Dumitru Florea on 2017/09/27 11:36

From version 86.1
edited by Vincent Massol
on 2016/04/11 11:41
To version 87.1
edited by Clemens Robbenhaar
on 2016/04/27 15:54
Change comment: fix example of 'parent' extraParam

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.ClemensRobbenhaar
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -47,7 +47,7 @@
47 47  |**callback**|An advanced option to pass the name of a JavaScript method as custom handler of matched rows, leaving the responsibility of the DOM construction of the row entry, and its injection in the table to this method. This option should be used when complex manipulations are needed to construct row entries, which is not possible to do using the default handler. You can see an usage example of this option in the "[[All Attachments>>||anchor="HAllAttachments"]]" UI in the XWiki Enterprise document index.|//None//|
48 48  |**extraParams**|Used to add extra parameters to the Ajax request for the ##resultPage## which generates the JSON data. Must start with an "&" (If you add multiple settings when using this option they have to be separated with an "&"). You should also use the [[EscapeTool>>http://velocity.apache.org/tools/devel/generic/EscapeTool.html]] to URL-encode any special character in your parameter values (e.g. the space name since that space can contain any character). For example: ##'extraParams' : "&space=$escapetool.url('ComitĂȘ')"##. The parameters allowed depend on the implementation of the ##resultPage##. For the default ##resultsPage## (i.e. ##XWiki.LiveTableResults##) here's what's supported:(((
49 49  * ##space##: Find all the documents from a given specific space (Nested Spaces are not included). Example: ##"extraParams" : "&space=${doc.space}"## (for all the documents in the current space).
50 -* ##parent##: Find all the documents having a specific parent field (not used anymore with Nested Spaces). Example: ##"extraParams" : "&space=${doc.space}"##
50 +* ##parent##: Find all the documents having a specific parent field (not used anymore with Nested Spaces). Example: ##"extraParams" : "&parent=${doc.space}.WebHome"##
51 51  * ##orphaned##: Find all the orphaned documents, i.e. documents having an empty parent field (not used anymore with Nested Spaces). Example: ##"extraParams" : "&orphaned=1"##
52 52  * ##location## (new in XWiki 8.1M2): Finds all the documents having a part of their full reference path matching the passed value. Example: ##"extraParams" : "&location=pa"## would match a document at ##France.Paris.Beaubourg.WebHome##. Note that it's possible to filter using the ##/## character instead of the ##.## one.
53 53  * Custom xproperty. Find all the documents having objects that have a specific value for a property (##"extraParams" : "&yourProperty=yourValue"## - note that in this particular case, yourProperty has to be declared in the ##$columns## array). This option can also be used to view properties of classes other than the one declared in className (##"extraParams" : "&yourProperty_class=yourSpace.yourClass"## - sorting and filtering available from version 6.2.1.)

Get Connected