GridExtensionSyntax2

Last modified by JeromeVelociter on 2009/04/21 00:45

Grid Extension in Syntax 2.0

Sample of the Grid Extension in Syntax 2.0

{{velocity}}
{{include document="XWiki.GridExtensionMacros2" /}}
## optional GWT prop editor
#gwtpropeditor()
#set($collist = [ "first_name", "last_name","blog", "imtype", "email", "doc.creator", "_attachment", "_avatar"])
#set($colprops = {
                   "first_name" : { "type" : "text" , "size" : 10, "link" : "view"},
                   "last_name" : { "type" : "text" , "size" : 10, "link" : "view"},
                   "blog" : { "type" : "text" , "size" : 20, "link" : "none"},
                   "imtype" : { "type" : "list" , "size" : 1, "link" : "none"},
                   "email" : { "type" : "text" , "size" : 20, "link" : "editor"},
                   "doc.creator" : { "type" : "text" , "size" : 20, "link" : "field"},
                   "_attachment" : { "type" : "none" , "size" : 20, "link" : "none", "html" : "true" },
                   "_photolist" : { "type" : "none" , "size" : 20, "link" : "none", "html" : "true" },
                   "_avatar" : { "type" : "none" , "size" : 20, "link" : "none", "html" : "true" }
                 })
## id of the div, list of columns, columns properties, default column to sort for, class name, nb of items, display or not a tag cloud
#grid("users" $collist $colprops "last_name" "asc" "user_" "XWiki.XWikiUsers" 4 true)
{{/velocity}}

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