Using the Page Tree Search macro, you can add a search box to your Confluence page. When a viewer enters a search term, Confluence will search a hierarchy of pages starting from a specified parent (root) page and return the search results.
You can also add a search box as part of a dynamic page tree, which looks like a table of contents. See the Page Tree macro .
To add the Page Tree Search macro to a page:
Parameter | Default | Description |
|---|---|---|
Name of Root Page | none | The name of the root page whose hierarchy of pages will be searched by this macro. If this not specified, the root page is the current page. Note: Unlike the Page Tree macro, the Page Tree Search macro does not accept the special values that start with an @ sign, such as @home or @self. |
The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page.
Macro name: pagetreesearch
Macro body: None.
<ac:structured-macro ac:name="pagetreesearch"> <ac:parameter ac:name="root">My page name</ac:parameter> </ac:structured-macro> |
{pagetreesearch:root=My page name} |