LiveTable

Version 182.1 by Ludovic Dubost on 2009/10/19 20:41
Warning: For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

Live Table

Code

#template("macros.vm")
{{velocity}}
#set($columns = ["_avatar", "first_name", "last_name", "email", "doc.creationDate", "_actions"])
#set($columnsProperties = {
    "_avatar" : { "type" : "none", "link" : "none", "html" : "true", "sortable":false },
    "first_name" : { "type" : "text" , "size" : 20, "link" : "view"},
    "last_name" : { "type" : "text", "link" : "view"},
    "email" : { "type" : "text" }
})
#set($options = {
   "className":"XWiki.XWikiUsers",
   "translationPrefix" : "xe.index.users.",
   "tagCloud" : true,
   "rowCount": 10
})
#livetable("userdirectory" $columns $columnsProperties $options)
{{/velocity}}

Result

Failed to execute the [velocity] macro. Cause: [The execution of the [velocity] script macro is not allowed in [incubator:XWiki.LiveTable]. Check the rights of its last author or the parameters if it's rendered from another script.]. Click on this message for details.