Legacy Knowledge Base
公開されました Jun. 30, 2025

複数の検索結果を1つのページに表示する

Written By

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 複数の検索結果を同じページに表示したい。
  • タブを使用しており(例えば、すぐに使えるTabsフラグメント)、各タブに独自の検索結果ウィジェットを持たせたい。
  • どうすればそれを実現できるのか?

環境

  • Liferay DXP 2023.Q4

解像度

  • これを実現するには、Federated Search機能を活用します。
  • 例として、次のシナリオを考えてみましょう:特定のDocuments and Mediaフォルダに保存されているファイルを表示するために、3つの検索結果を持つページを作りたい。 これはひとつのアプローチかもしれない:
    • DocumentsとMediaの管理に3つのフォルダを作成します。 これらのフォルダにファイルを追加する。 この例では、同様のタイトルが与えられる。
    • このような検索ページを作成する:
    • カラムの各ウィジェットに対して、同じ値(たとえば、'column1'、'column2'、'column3')でFederated Search Keyオプションを設定します。
    • カスタムフィルターを次のように設定する:
      • フィルタフィールド:dataRepositoryId
      • フィルター値:<フォルダーID>
    • 次に、検索バーを「不可視」にしてください。
    • おそらく、カスタム・フィルターも不可視にしたいだろうし、ニーズに合ったその他の変更も必要だろう。
    • 最後に、検索を実行した後、一般ユーザーにはこのように表示される:
  • ブループリントを使用している場合、ブループリントのオプション・ウィジェットでも同じアプローチが可能です。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base