Wiki-Quellcode von Confluence bridge for Details (Page properties)
Zuletzt geändert von xwikiadmin am 2025/01/07 11:39
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | = Description = |
2 | |||
3 | This is a Confluence bridge for the Details macro. Confluence now calls this macro [[Page Properties>>https://confluence.atlassian.com/doc/page-properties-macro-184550024.html]]. It allows the user to define arbitrary properties and attach arbitrary values to them. By arbitrary, we mean that properties and values are free-form: they do not follow any strict schema defined somewhere in the wiki. | ||
4 | |||
5 | Property-value couples are defined in a two column table where the first column uses header cells and define the property names, and the second column defines the values in regular cells. | ||
6 | |||
7 | The [[Confluence bridge for Details Summary>>ConfluenceDetailsSummary]] (Also known as the [[Page Property Report macro>>https://xwikisas.atlassian.net/wiki/spaces/TEST/pages/40829135/Page+properties+report]] in Confluence) can then be used to show details on this macro. | ||
8 | |||
9 | Bridges are there for compatibility with content migrated from Confluence and this is particularly true for the Details and Details Summary macros. We strongly encourage people to use native XWiki features, like [[App Within Minutes>>https://extensions.xwiki.org/xwiki/bin/view/Extension/App%20Within%20Minutes%20Application]] or XWiki classes and objects, which are more powerful and better integrated in the platform. | ||
10 | |||
11 | = Parameters = | ||
12 | |||
13 | |=Parameter|=Description|=Default | ||
14 | |**hidden**|If true, the content of the macro will be hidden.|false | ||
15 | |**id**|The optional identifier used to refer to these properties|(empty) | ||
16 | |||
17 | = Usage example | ||
18 | |||
19 | {{excerpt name="usageexample"}} | ||
20 | {{code}} | ||
21 | {{confluence_details id="work"}} | ||
22 | |=Title|The Hitchhiker's Guide to the Galaxy| | ||
23 | |=Author|Douglas Adams| | ||
24 | |=Released in years|1979–1992| | ||
25 | |=Kind|Trilogy in five books | ||
26 | |=Genre|Science fiction | ||
27 | {{/confluence_details}} | ||
28 | {{/code}} | ||
29 | |||
30 | In another page: | ||
31 | |||
32 | {{code}} | ||
33 | {{confluence_detailssummary showLikesCount="true" showCommentsCount="true" showLastModified="true" headings="Title,Author,~"Released in years~"" showUnresolvedCommentsCount="true" id="work" showPageLabels="true" showCreator="true" cql="label = ~"examplelabel~" and space = currentSpace ( )"/}} | ||
34 | |||
35 | {{confluence_detailssummary showLikesCount="true" showCommentsCount="true" showLastModified="true" showUnresolvedCommentsCount="true" id="work" showPageLabels="true" showCreator="true" cql="label = ~"examplelabel~" and space = currentSpace ()"/}} | ||
36 | |||
37 | {{/code}} | ||
38 | |||
39 | The result is the following: | ||
40 | |||
41 | {{confluence_details id="work"}} | ||
42 | |=Title|The Hitchhiker's Guide to the Galaxy| | ||
43 | |=Author|Douglas Adams| | ||
44 | |=Released in years|1979–1992| | ||
45 | |=Kind|Trilogy in five books | ||
46 | |=Genre|Science fiction | ||
47 | {{/confluence_details}} | ||
48 | |||
49 | In the other page: | ||
50 | |||
51 | {{confluence_detailssummary showLikesCount="true" showCommentsCount="true" showLastModified="true" headings="~"Released in years~", Author ,Title," showUnresolvedCommentsCount="true" id="work" showPageLabels="true" showCreator="true" cql="label = ~"examplelabel~" and space = currentSpace ()"/}} | ||
52 | |||
53 | {{confluence_detailssummary showLikesCount="true" showCommentsCount="true" showLastModified="true" showUnresolvedCommentsCount="true" id="work" showPageLabels="true" showCreator="true" cql="label = ~"examplelabel~" and space = currentSpace ()"/}} | ||
54 | |||
55 | {{/excerpt}} | ||
56 |