Изменения документа AWMKanbanMacro
Редактировал(а) Anton Krivchenkov 30.03.2026 23:03
От версии 3.1
отредактировано Anton Krivchenkov
на 31.10.2025 18:10
на 31.10.2025 18:10
Изменить комментарий:
Migrated property [featureMandatory] from class [XWiki.WikiMacroParameterClass]
К версии 5.1
отредактировано Anton Krivchenkov
на 30.03.2026 23:03
на 30.03.2026 23:03
Изменить комментарий:
Install extension [org.xwiki.contrib:macro-kanban/1.4.3]
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
-
Объекты (2 изменено, 1 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -12,17 +12,19 @@ 12 12 * ##xwql## - additional xwql to restrict the query 13 13 * ##title## - field to display the title 14 14 * ##columns## - the class fields to display as a description in each card 15 +* ##order## - order to sort the data by. Example: 'doc.name desc', 'doc.date desc', 'customClassField1 asc, customClassField2 desc, doc.name desc' or 'customClassField1 asc' if the className object contains such custom fields 16 +* ##limit## - the maximum amount of items to show. If the ##displayedCategoryColumns## parameter is set, the limit is applied for each column. 15 15 16 16 Examples: 17 17 18 -== Kanban o fMoviesby genre showingthe directorfield ==20 +== Kanban board for each director, showing genre and seen fields as description for each card == 19 19 20 20 {{awmkanban app="Help.Applications.Movies" category="databaseList1" columns="staticList1,boolean1"/}} 21 21 22 -== Kanban o f Movies showing the director field,onlyshowinga subset of directors==24 +== Kanban board for a subset of directors == 23 23 24 24 {{awmkanban app="Help.Applications.Movies" category="databaseList1" displayedCategoryColumns="Help.Applications.Contributors.Charlie Chaplin" columns="staticList1,boolean1"/}} 25 25 26 -== Kanban o fMovies by genreshowingthedirectorfieldonlycomedymovies ==28 +== Kanban board for each director, showing only unseen movies == 27 27 28 28 {{awmkanban app="Help.Applications.Movies" category="databaseList1" columns="staticList1,boolean1" xwql="obj.boolean1=0"/}}
- XWiki.WikiMacroClass[1]
-
- Код
-
... ... @@ -34,10 +34,12 @@ 34 34 #set($colors = "#8C4,#0AC,#F91,#FC3,#E43") 35 35 #end 36 36 #set ($displayedCategoryColumns = "$!xcontext.macro.params.displayedCategoryColumns") 37 +#set ($order = "$!xcontext.macro.params.order") 38 +#set ($limit = "$!xcontext.macro.params.limit") 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)}")) 41 +#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)}&order=${escapetool.url($order)}&limit=${escapetool.url($limit)}")) 40 40 #set($awmupdatepath = "/objects/${className}/0/properties/${category}/") 41 -{{kanban source="${source}" updateService="" addBoardButton="false" addItemButton="false" removeBoardButton="false" removeItemButton="false" awmupdatepath="${awmupdatepath}" width="${width}" /}}43 +{{kanban source="${source}" updateService="" addBoardButton="false" addItemButton="false" removeBoardButton="false" addRemoveButton="false" awmupdatepath="${awmupdatepath}" width="${width}" /}} 42 42 {{/velocity}} 43 43
- XWiki.WikiMacroParameterClass[6]
-
- Описание параметра
-
... ... @@ -1,1 +1,1 @@ 1 -Order to sort the data by 1 +Order to sort the data by. Example: 'doc.name desc', 'doc.date desc', or 'customClassField1 asc' if the className object contains such a field. Sort by multiple fields: 'customClassField1 asc, customClassField2 desc, doc.name desc'
- XWiki.WikiMacroParameterClass[13]
-
- Значение параметра по-умолчанию
-
... ... @@ -1,0 +1,1 @@ 1 +50 - Описание параметра
-
... ... @@ -1,0 +1,1 @@ 1 +Set the maximum amount of items to show. If the displayedCategoryColumns parameter is set, the limit is applied for each column. - Обязательность параметра
-
... ... @@ -1,0 +1,1 @@ 1 +Нет - Имя параметра
-
... ... @@ -1,0 +1,1 @@ 1 +limit