[All Adaptavist Apps]
The {with-page} macro does two things:
...
Pages can be retrieved based on:
The macro searches for pages based on these properties in the current space by default, or in any number of spaces which can be specified in the macro parameters.
...
This macro requires Builder 3.0 or above.
Code Block |
---|
{with-page:direction=ancestors|startPage=My Page|space=DOC|title=Page 1,Page 2|label=test,label2|metadata=key1,key2:value1,key2:value2|default=Default Page} |
...
Property | Required | Default | Notes |
---|---|---|---|
direction |
| The direction (in page hierarchy) that the macro should look in when searching for pages. The following values are permitted:
| |
startPage | @self | The page to start the search from. The following values are permitted:
| |
space |
| Comma-separated list of spaces to search in | |
title |
| Comma-separated list of page titles to search for | |
label |
| Comma-separated list of labels the page(s) should have | |
metadata |
| Comma-separated list of metadata key:value pairs, or metadata keys which the pages must posess. If a key:value pair is specified, then the key must have that value; if only the key is specified then any value is valid | |
default |
| Specifies a default page to use if no page was found with the previous search parameters. The following values are permitted:
|
Expand | ||||
---|---|---|---|---|
| ||||
|
Which results in:
Show image attached to the parent page | Show image attached to the parent page | ||
| |||
|
Which results in:
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
Expand | ||||||
Link to "sample.pdf" attached to the first parent page labeled "topic" | Link to "sample.pdf" attached to the first parent page labeled "topic" | |||||
Wiki Markup |
| |||||
|
...
| ||
|
...
Expand | |||||
---|---|---|---|---|---|
| pageFind page labeled 'sponsors' in the current page tree, knowing it is a child of a parent page with the label 'homepage', then render the images attached to the page labeled 'sponsors' in a gallery on the current page |
|
Expand | ||||
---|---|---|---|---|
| ||||
|
...
|
...
|
...
|
...
| ||
|
...
Expand | |||||
---|---|---|---|---|---|
| sidebarForum-specific content for the sidebar |
|
...