ページ ツリー検索マクロを使用して、Confluence ページに検索ボックスを追加できます。閲覧者が検索語を入力すると、すると、Confluence は指定された親 (ルート) ページから開始するページ階層を検索し、検索結果を返します。

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  .

ページ ツリー検索マクロの使用

ページ ツリー検索マクロをページに追加する方法

  1. Confluence のエディタで、[挿入] > [その他のマクロ] を選択します。
  2. 対象のマクロを見つけて、選択します。

Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.

既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。マクロのパラメータが編集可能な場合、マクロのダイアログ ウィンドウが開きます。

パラメーター

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

パラメーター

既定

説明

ルート ページの名前
(root

なし

このマクロでページ階層が検索されるルート ページの名前。指定しない場合、ルート ページは現在のページとなります。

: ページ ツリー マクロとは異なり、ページ ツリー検索マクロでは、"@" 記号で開始する特殊値を使用できません (例:"@home" や "@self" など)。

コー​​ドの例

次の例は、Confluence ページの基本的なマークアップを調べたり、編集したりする上級ユーザー向けに提供されています。 

マクロ名: pagetreesearch

マクロ本文: なし。

保存形式の例

<ac:structured-macro ac:name="pagetreesearch">
  <ac:parameter ac:name="root">My page name</ac:parameter>
</ac:structured-macro>

Wiki マークアップ例

{pagetreesearch:root=My page name}
  • ラベルなし