Changes for page Confluence bridge for Details Summary (Page properties report)
Last modified by Yana Oksner on 2026/01/08 11:01
From version 6.1
edited by Yana Oksner
on 2025/10/02 15:36
on 2025/10/02 15:36
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.28.0]
To version 7.1
edited by Yana Oksner
on 2026/01/08 11:01
on 2026/01/08 11:01
Change comment:
Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.29.0]
Summary
-
Objects (0 modified, 0 added, 15 removed)
- XWiki.WikiMacroClass[0]
- XWiki.WikiMacroParameterClass[0]
- XWiki.WikiMacroParameterClass[1]
- XWiki.WikiMacroParameterClass[2]
- XWiki.WikiMacroParameterClass[3]
- XWiki.WikiMacroParameterClass[4]
- XWiki.WikiMacroParameterClass[5]
- XWiki.WikiMacroParameterClass[6]
- XWiki.WikiMacroParameterClass[7]
- XWiki.WikiMacroParameterClass[8]
- XWiki.WikiMacroParameterClass[9]
- XWiki.WikiMacroParameterClass[10]
- XWiki.WikiMacroParameterClass[11]
- XWiki.WikiMacroParameterClass[12]
- XWiki.WikiMacroParameterClass[13]
Details
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -No - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro code
-
... ... @@ -1,83 +1,0 @@ 1 -{{include reference="Confluence.Macros.CommonCode" /}} 2 - 3 -{{velocity output="false"}} 4 -#macro (showTags $d) 5 - #foreach ($tag in $d.getTagList()) 6 - [[$services.rendering.escape($services.rendering.escape($tag, $xwiki.currentContentSyntaxId), $xwiki.currentContentSyntaxId)>>Main.Tags||queryString="do=viewTag&tag=$escapetool.url($tag)"]]#if (!$foreach.last), #end 7 - #end 8 -#end 9 - 10 -#macro (executeMacro) 11 - #set ($title = $services.rendering.escape($wikimacro.parameters.firstcolumn, $xwiki.currentContentSyntaxId)) 12 - #if (!$title) 13 - #set ($title = $services.localization.render('rendering.macro.detailssummary.firstcolumn')) 14 - #end 15 - #set ($results = $NULL) 16 - #getCQLMacroResults($xcontext.macro $results) 17 - #if ($results != $NULL) 18 - #set ($showLastModified = "$!xcontext.macro.params.showLastModified") 19 - #set ($showLastModified = $showLastModified.equalsIgnoreCase("true")) 20 - #set ($showPageLabels = "$!xcontext.macro.params.showPageLabels") 21 - #set ($showPageLabels = $showPageLabels.equalsIgnoreCase("true")) 22 - #set ($showCreator = "$!xcontext.macro.params.showCreator") 23 - #set ($showCreator = $showCreator.equalsIgnoreCase("true")) 24 - #set ($showAnyMetadata = $showLastModified || $showPageLabels || $showCreator) 25 - #set ($details = $services.confluence.details.getDetails("$!xcontext.macro.params.id", "$!xcontext.macro.params.headings", $results, "$!xcontext.macro.params.sortBy", "$!xcontext.macro.params.reverseSort" == "true")) 26 - #if ($details.size() < 2) 27 - $services.localization.render('rendering.macro.detailssummary.noresults') 28 - #else 29 - (% class="details_summary" %) 30 - ((( 31 - #foreach ($row in $details) 32 - #if ($foreach.first) 33 - |=$title## 34 - #foreach ($cell in $row) 35 - |=$cell## 36 - #end## 37 - #if ($showLastModified)|=$services.localization.render('rendering.macro.detailssummary.lastModified')#end## 38 - #if ($showCreator)|=$services.localization.render('rendering.macro.detailssummary.creator')#end## 39 - #if ($showPageLabels)|=$services.localization.render('rendering.macro.detailssummary.tags')#end## 40 - 41 - #else 42 - #set ($d = $xwiki.getDocument($row.get(0))) 43 - #foreach ($cell in $row) 44 - #set ($title = $d.getTitle()) 45 - #if (!$title) 46 - #set ($title = $d.getDocumentReference().getName()) 47 - #if ($title == "WebHome") 48 - #set ($title = $d.getDocumentReference().getParent().getName()) 49 - #end 50 - #end 51 - #if (!$title) 52 - #set ($title = $cell) 53 - #end 54 - | ((( #if ($foreach.first)[[$services.rendering.escape($services.rendering.escape($title, $xwiki.currentContentSyntaxId), $xwiki.currentContentSyntaxId)>>$cell]]#{else}## 55 - {{context document="$row.get(0)" restricted="true"}}## 56 - $cell## 57 - {{/context}} 58 - #end )))## 59 - #end## 60 - #if ($showLastModified)|$xwiki.formatDate($d.getDate())#end## 61 - #if ($showCreator)|#if ($d.getCreator() == "XWiki.superadmin")superadmin#else[[$d.getCreator()]]#end#end## 62 - #if ($showPageLabels)|#showTags($d)#end## 63 - #end 64 - 65 - #end 66 - ))) 67 - 68 - #end 69 - #end 70 -#end 71 -{{/velocity}} 72 - 73 -{{velocity}} 74 -## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right 75 -## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that 76 -## don't have view right on those pages. 77 -#if ($services.promacrolicensing.hasLicensureForEntity($xcontext.macro.doc.documentReference)) 78 - #executeMacro 79 -#else 80 - {{missingLicenseMessage extensionName="proMacros.extension.name"/}} 81 -#end 82 -{{/velocity}} 83 - - Macro content availability
-
... ... @@ -1,1 +1,0 @@ 1 -No content - Macro description
-
... ... @@ -1,1 +1,0 @@ 1 -Confluence bridge for the Details Summary (Page Properties Report) macro to display properties attached to a page using the Details macro. - Macro id
-
... ... @@ -1,1 +1,0 @@ 1 -confluence_detailssummary - Macro name
-
... ... @@ -1,1 +1,0 @@ 1 -Confluence bridge for Details Summary - Supports inline mode
-
... ... @@ -1,1 +1,0 @@ 1 -No - Macro visibility
-
... ... @@ -1,1 +1,0 @@ 1 -Current Wiki
- XWiki.WikiMacroParameterClass[0]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -The group of properties to show. If empty, will show page properties without identifiers. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -id
- XWiki.WikiMacroParameterClass[1]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Which column of the page properties to show. By default, all columns are shown. Columns with comma in their names require being quoted. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -headings
- XWiki.WikiMacroParameterClass[2]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -A query written in the Confluence Query Language (CQL) syntax defining the list of documents to show. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -cql
- XWiki.WikiMacroParameterClass[3]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -A list of tags to use, separated by a comma or a space. This value is ignored if the cql parameter is set. Note: this parameter doesn't exist in Confluence, it's an XWiki addition. - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -label
- XWiki.WikiMacroParameterClass[4]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -A custom title for the document name column - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -firstcolumn
- XWiki.WikiMacroParameterClass[5]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Show the last modified time of the page - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -showLastModified - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -java.lang.Boolean
- XWiki.WikiMacroParameterClass[6]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Show the tags of listed documents - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -showPageLabels - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -java.lang.Boolean
- XWiki.WikiMacroParameterClass[7]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Show the initial author of the listed documents - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -showCreator - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -java.lang.Boolean
- XWiki.WikiMacroParameterClass[8]
-
- Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -OR - Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Whether all the tags should match (AND), or any (OR). This value is ignored if the cql parameter is set. Note: this parameter doesn't exist in Confluence, it's an XWiki addition. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -operator
- XWiki.WikiMacroParameterClass[9]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Maximum number of results. Note: this parameter doesn't exist in Confluence, it's an XWiki addition. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -max - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -java.lang.Integer
- XWiki.WikiMacroParameterClass[10]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -What to sort on. The only supported values are "modified", "creation" and "title" for now. Ignored if an order by clause is present in the cql parameter. Note: this parameter doesn't exist in Confluence, it's an XWiki addition. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -sort
- XWiki.WikiMacroParameterClass[11]
-
- Parameter default value
-
... ... @@ -1,1 +1,0 @@ 1 -false - Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Whether to reverse the sort. Note: this parameter doesn't exist in Confluence, it's an XWiki addition. - Parameter mandatory
-
... ... @@ -1,1 +1,0 @@ 1 -No - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -reverse - Parameter type
-
... ... @@ -1,1 +1,0 @@ 1 -java.lang.Boolean
- XWiki.WikiMacroParameterClass[12]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -What to sort on. - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -sortBy
- XWiki.WikiMacroParameterClass[13]
-
- Parameter description
-
... ... @@ -1,1 +1,0 @@ 1 -Whether to reverse the sort. - Parameter name
-
... ... @@ -1,1 +1,0 @@ 1 -reverseSort