Modifications pour le document AWMKanbanMacro
Modifié par Admin le 21/07/2025 - 08:59
Résumé
-
Objets (1 modifications, 1 ajouts, 0 suppressions)
Détails
- XWiki.WikiMacroClass[1]
-
- Code de la macro
-
... ... @@ -27,9 +27,16 @@ 27 27 ## We don't override the xwql variable in case it was defined externally by another macro calling this one (e.g. TaskManager.KanbanBoardMacro). 28 28 #set($xwql = "") 29 29 #end 30 +#if ($xcontext.macro.params.colors) 31 + #set($colors = $xcontext.macro.params.colors) 32 +#else 33 + ## We set as default the original colors: green,blue,orange,yellow,red 34 + #set($colors = "#8C4,#0AC,#F91,#FC3,#E43") 35 +#end 36 + 30 30 #set($width = "$xcontext.macro.params.width") 31 -#set($source = $xwiki.getDocument("Macros.KanbanAWMSource").getURL("get", "xpage=plain&outputSyntax=plain&className=${escapetool.url($className)}&category=${escapetool.url($category)}&title=${escapetool.url($title)}&columns=${escapetool.url($columns)}&xwql=${escapetool.url($xwql)}")) 32 -#set($awmupdatepath = "/objects/${className}/0/properties/${category}/") 38 +#set($source = $xwiki.getDocument("Macros.KanbanAWMSource").getURL("get", "xpage=plain&outputSyntax=plain&className=${escapetool.url($className)}&category=${escapetool.url($category)}&title=${escapetool.url($title)}&columns=${escapetool.url($columns)}&xwql=${escapetool.url($xwql)}&colors=${escapetool.url($colors)}")) 39 +#set($awmupdatepath = "/objects/${className}/0/properties/${category}/") 33 33 {{kanban source="${source}" updateService="" addBoardButton="false" addItemButton="false" removeBoardButton="false" removeItemButton="false" awmupdatepath="${awmupdatepath}" width="${width}" /}} 34 34 {{/velocity}} 35 35
- XWiki.WikiMacroParameterClass[11]
-
- Description du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +List of colors separated by commas, each color corresponds to a column. - Nom du paramètre
-
... ... @@ -1,0 +1,1 @@ 1 +colors