mirror of
https://github.com/kovetskiy/mark.git
synced 2025-04-24 05:42:40 +08:00
Add Page Properties Report macro
This commit is contained in:
parent
3307f329d9
commit
28ee195a77
@ -427,6 +427,11 @@ By default, mark provides several built-in templates and macros:
|
|||||||
* template: `ac:contentbylabel` to display a list of pages, blog posts or attachments that have particular labels
|
* template: `ac:contentbylabel` to display a list of pages, blog posts or attachments that have particular labels
|
||||||
- CQL: The CQL query to discover the content
|
- CQL: The CQL query to discover the content
|
||||||
|
|
||||||
|
* template: `ac:detailssummary` to show summary information from one page on a another page
|
||||||
|
- Headings: Column headings to show
|
||||||
|
- CQL: The CQL query to discover the pages
|
||||||
|
- SortBy: Sort by a specific column heading
|
||||||
|
|
||||||
* macro `@{...}` to mention user by name specified in the braces.
|
* macro `@{...}` to mention user by name specified in the braces.
|
||||||
|
|
||||||
## Template & Macros Usecases
|
## Template & Macros Usecases
|
||||||
|
@ -347,6 +347,16 @@ func templates(api *confluence.API) (*template.Template, error) {
|
|||||||
`</ac:structured-macro>`,
|
`</ac:structured-macro>`,
|
||||||
),
|
),
|
||||||
|
|
||||||
|
/* https://confluence.atlassian.com/conf59/page-properties-report-macro-792499165.html */
|
||||||
|
|
||||||
|
`ac:detailssummary`: text(
|
||||||
|
`<ac:structured-macro ac:name="detailssummary" ac:schema-version="2">`,
|
||||||
|
`<ac:parameter ac:name="headings">{{ .Headings }}</ac:parameter>`,
|
||||||
|
`<ac:parameter ac:name="sortBy">{{ .SortBy }}</ac:parameter>`,
|
||||||
|
`<ac:parameter ac:name="cql">{{ .CQL }}</ac:parameter>`,
|
||||||
|
`</ac:structured-macro>`,
|
||||||
|
),
|
||||||
|
|
||||||
// TODO(seletskiy): more templates here
|
// TODO(seletskiy): more templates here
|
||||||
} {
|
} {
|
||||||
templates, err = templates.New(name).Parse(body)
|
templates, err = templates.New(name).Parse(body)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user