Zuletzt geändert von Daniel Herrmann am 2026/02/04 20:25

Von Version Icon 8.1
bearbeitet von Daniel Herrmann
am 2026/02/04 20:25
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.29.1]
Auf Version Icon 2.1 Icon
bearbeitet von Daniel Herrmann
am 2025/06/23 20:09
Änderungskommentar: Install extension [com.xwiki.pro:xwiki-pro-macros-confluence-bridges-ui/1.26.20]

Zusammenfassung

Details

Icon XWiki.WikiMacroClass[0]
Cached
... ... @@ -1,0 +1,1 @@
1 +Nein
Asynchrones Rendern
... ... @@ -1,0 +1,1 @@
1 +Nein
Makro-Code
... ... @@ -1,0 +1,76 @@
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 + #foreach ($row in $details)
30 + #if ($foreach.first)
31 + |=$title##
32 + #foreach ($cell in $row)
33 + |=$cell##
34 + #end##
35 + #if ($showLastModified)|=$services.localization.render('rendering.macro.detailssummary.lastModified')#end##
36 + #if ($showCreator)|=$services.localization.render('rendering.macro.detailssummary.creator')#end##
37 + #if ($showPageLabels)|=$services.localization.render('rendering.macro.detailssummary.tags')#end##
38 +
39 + #else
40 + #set ($d = $xwiki.getDocument($row.get(0)))
41 + #foreach ($cell in $row)
42 + #set ($title = $d.getTitle())
43 + #if (!$title)
44 + #set ($title = $d.getDocumentReference().getName())
45 + #if ($title == "WebHome")
46 + #set ($title = $d.getDocumentReference().getParent().getName())
47 + #end
48 + #end
49 + #if (!$title)
50 + #set ($title = $cell)
51 + #end
52 + | ((( #if ($foreach.first)[[$services.rendering.escape($services.rendering.escape($title, $xwiki.currentContentSyntaxId), $xwiki.currentContentSyntaxId)>>$cell]]#{else}$cell#end ))) ##
53 + #end##
54 + #if ($showLastModified)|$xwiki.formatDate($d.getDate())#end##
55 + #if ($showCreator)|#if ($d.getCreator() == "XWiki.superadmin")superadmin#else[[$d.getCreator()]]#end#end##
56 + #if ($showPageLabels)|#showTags($d)#end##
57 +
58 + #end
59 + #end
60 +
61 + #end
62 + #end
63 +#end
64 +{{/velocity}}
65 +
66 +{{velocity}}
67 +## We need to check if there is a valid license because the macro is registered even if the user doesn't have view right
68 +## on the macro definition page. See XWIKI-14828: Rendering macros defined in wiki pages are available to users that
69 +## don't have view right on those pages.
70 +#if ($services.licensing.licensor.hasLicensureForEntity($xcontext.macro.doc.documentReference))
71 + #executeMacro
72 +#else
73 + {{missingLicenseMessage extensionName="proMacros.extension.name"/}}
74 +#end
75 +{{/velocity}}
76 +
Verfügbarkeit von Makroinhalten
... ... @@ -1,0 +1,1 @@
1 +No content
Makrobeschreibung
... ... @@ -1,0 +1,1 @@
1 +Confluence bridge for the Details Summary (Page Properties Report) macro to display properties attached to a page using the Details macro.
Makro id
... ... @@ -1,0 +1,1 @@
1 +confluence_detailssummary
Makroname
... ... @@ -1,0 +1,1 @@
1 +Confluence bridge for Details Summary
Unterstützt Inline-Modus
... ... @@ -1,0 +1,1 @@
1 +Nein
Makro-Sichtbarkeit
... ... @@ -1,0 +1,1 @@
1 +Current Wiki
Icon XWiki.WikiMacroParameterClass[0]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +The group of properties to show. If empty, will show page properties without identifiers.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +id
Icon XWiki.WikiMacroParameterClass[1]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
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 verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +headings
Icon XWiki.WikiMacroParameterClass[2]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +A query written in the Confluence Query Language (CQL) syntax defining the list of documents to show.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +cql
Icon XWiki.WikiMacroParameterClass[3]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
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,0 +1,1 @@
1 +label
Icon XWiki.WikiMacroParameterClass[4]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +A custom title for the document name column
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +firstcolumn
Icon XWiki.WikiMacroParameterClass[5]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Show the last modified time of the page
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +showLastModified
Parameter-Typ
... ... @@ -1,0 +1,1 @@
1 +java.lang.Boolean
Icon XWiki.WikiMacroParameterClass[6]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Show the tags of listed documents
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +showPageLabels
Parameter-Typ
... ... @@ -1,0 +1,1 @@
1 +java.lang.Boolean
Icon XWiki.WikiMacroParameterClass[7]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Show the initial author of the listed documents
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +showCreator
Parameter-Typ
... ... @@ -1,0 +1,1 @@
1 +java.lang.Boolean
Icon XWiki.WikiMacroParameterClass[8]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +OR
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
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 verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +operator
Icon XWiki.WikiMacroParameterClass[9]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Maximum number of results. Note: this parameter doesn't exist in Confluence, it's an XWiki addition.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +max
Parameter-Typ
... ... @@ -1,0 +1,1 @@
1 +java.lang.Integer
Icon XWiki.WikiMacroParameterClass[10]
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
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 verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +sort
Icon XWiki.WikiMacroParameterClass[11]
Parameter-Vorgabe
... ... @@ -1,0 +1,1 @@
1 +false
Parameter-Beschreibung
... ... @@ -1,0 +1,1 @@
1 +Whether to reverse the sort. Note: this parameter doesn't exist in Confluence, it's an XWiki addition.
Parameter verpflichtend
... ... @@ -1,0 +1,1 @@
1 +Nein
Parameter-Name
... ... @@ -1,0 +1,1 @@
1 +reverse
Parameter-Typ
... ... @@ -1,0 +1,1 @@
1 +java.lang.Boolean