Modifications pour le document AWMKanbanMacro
Modifié par Admin le 21/07/2025 - 08:59
Résumé
-
Propriétés de la Page (1 modifications, 0 ajouts, 0 suppressions)
-
Objets (2 modifications, 0 ajouts, 1 suppressions)
Détails
- Propriétés de la Page
-
- Contenu
-
... ... @@ -3,15 +3,14 @@ 3 3 Example: 4 4 5 5 ##{{{ 6 -{{awmkanban app="Help.Applications.Movies" category="databaseList1" displayedCategoryColumns="Help.Applications.Contributors.Charlie Chaplin" columns="staticList1,boolean1" xwql="obj.boolean1=0" /}}6 +{{awmkanban app="Help.Applications.Movies" category="databaseList1" columns="staticList1,boolean1" xwql="obj.boolean1=0" /}} 7 7 }}}## 8 8 9 -* ##app or className## - application or className for which to build the kanban board 10 -* ##category## - class field used to group the kanban board into columns 11 -* ##displayedCategoryColumns## - only display these values of the `category` field as columns 12 -* ##xwql## - additional xwql to restrict the query 13 -* ##title## - field to display the title 14 -* ##columns## - the class fields to display as a description in each card 9 +* ##app or className## application or className for which to build the kanban board 10 +* ##category## field to use to break down the kanban board 11 +* ##xwql## additional xwql to restrict the query 12 +* ##title## field to display the title 13 +* ##columns## additional columns to display 15 15 16 16 Examples: 17 17 ... ... @@ -19,10 +19,6 @@ 19 19 20 20 {{awmkanban app="Help.Applications.Movies" category="databaseList1" columns="staticList1,boolean1"/}} 21 21 22 -== Kanban of Movies showing the director field, only showing a subset of directors== 23 - 24 -{{awmkanban app="Help.Applications.Movies" category="databaseList1" displayedCategoryColumns="Help.Applications.Contributors.Charlie Chaplin" columns="staticList1,boolean1"/}} 25 - 26 26 == Kanban of Movies by genre showing the director field only comedy movies == 27 27 28 28 {{awmkanban app="Help.Applications.Movies" category="databaseList1" columns="staticList1,boolean1" xwql="obj.boolean1=0"/}}
- XWiki.WikiMacroClass[1]
-
- Code de la macro
-
... ... @@ -33,10 +33,9 @@ 33 33 ## We set as default the original colors: green,blue,orange,yellow,red 34 34 #set($colors = "#8C4,#0AC,#F91,#FC3,#E43") 35 35 #end 36 -#set ($displayedCategoryColumns = "$!xcontext.macro.params.displayedCategoryColumns") 37 37 38 38 #set($width = "$xcontext.macro.params.width") 39 -#set($source = $xwiki.getDocument("Macros.KanbanAWMSource").getURL("get", "xpage=plain&outputSyntax=plain&className=${escapetool.url($className)}&category=${escapetool.url($category)}& displayedCategoryColumns=${escapetool.url($displayedCategoryColumns)}&title=${escapetool.url($title)}&columns=${escapetool.url($columns)}&xwql=${escapetool.url($xwql)}&colors=${escapetool.url($colors)}"))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)}")) 40 40 #set($awmupdatepath = "/objects/${className}/0/properties/${category}/") 41 41 {{kanban source="${source}" updateService="" addBoardButton="false" addItemButton="false" removeBoardButton="false" removeItemButton="false" awmupdatepath="${awmupdatepath}" width="${width}" /}} 42 42 {{/velocity}}
- XWiki.WikiMacroParameterClass[9]
-
- Description du paramètre
-
... ... @@ -1,1 +1,1 @@ 1 - The classproperties to displayin each cardescriptions additional data(comma separated values)1 +Columns to use to display additional data
- XWiki.WikiMacroParameterClass[12]
-
- Description du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -Have only these category values as board columns, i.e. for 'ToDo,InProgress' (comma separated values) you will only have 2 kanban columns. Note that these should be values accepted by the specified category property. - Paramètre obligatoire
-
... ... @@ -1,1 +1,0 @@ 1 -Non - Nom du paramètre
-
... ... @@ -1,1 +1,0 @@ 1 -displayedCategoryColumns