Changes for page Livetable Macro

Last modified by Manuel Leduc on 2024/01/04 15:56

From version 105.3
edited by Vincent Massol
on 2019/12/12 11:54
Change comment: There is no comment for this version
To version 106.1
edited by Simon Urli
on 2020/01/13 11:24
Change comment: Add some precision about doc_viewable

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.VincentMassol
1 +xwiki:XWiki.surli
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -394,7 +394,7 @@
394 394  "tags" : [],
395 395  "returnedrows": 1,
396 396  "offset": 1,
397 -"reqNo": $util.parseInt($request.reqNo),
397 +"reqNo": $numbertool.toNumber($request.reqNo),
398 398  "rows": [{
399 399   "doc_viewable" : true,
400 400   "user" : "vincent",
... ... @@ -418,6 +418,8 @@
418 418  http://localhost:8080/xwiki/bin/get/Space/MyJSON?outputSyntax=plain&transprefix=&classname=&collist=user,message&offset=1&limit=15&reqNo=4&message=t&sort=user&dir=asc
419 419  {{/code}}
420 420  
421 +Also note, that {{doc_viewable}} row attribute is notably use to display an info message about hidden pages when set to false, and might used for some options, so better to always specify it.
422 +
421 421  === Modify the default JSON ===
422 422  
423 423  Starting with XWiki Enterprise 4.0 you can modify the default JSON before it is sent to the client side to feed the live table. ##Space.MyJSON## page could look like this:

Get Connected