ページ ツリー検索マクロ

マクロ

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

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

また、動的ページ ツリーの一部として、目次のような検索ボックスを追加することもできます。ページ ツリー マクロを参照してください。

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

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

  1. From the editor toolbar, choose (Insert) > Other Macros
  2. 対象のマクロを見つけて、選択します。

Speed it up with autocomplete: Type and the beginning of the macro name, to see a list of suggested macros. In this example we're inserting the cheese macro.

既存のマクロを編集する方法: マクロのプレースホルダをクリックして、[編集] を選択します。これによりマクロの詳細を開き、マクロのパラメーターを編集できます。

パラメーター

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" など)。

Wiki マークアップの例

以下の例は、エディタ外部 (スペースのサイドバー、ヘッダー、フッターのカスタム コンテンツなど) でマクロを追加する場合に便利です。

マクロ名: pagetreesearch

マクロ本文: なし。

{pagetreesearch:root=My page name}
最終更新日 2017 年 11 月 1 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.