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

新しいウェブコンテンツを作成する際に、検索可能なトグルボタンをデフォルトでオフにする。

Written By

Debora Vita

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.

問題

  • 新しいウェブコンテンツを作成する際、基本ウェブコンテンツの検索可能トグルボタンをデフォルトでオフに設定したいと思います。 現在、新しいウェブコンテンツを作成する際、検索可能なトグルボタンはデフォルトでオンになっています。 そしてこのウェブ・コンテンツは、顧客がライブ・ウェブサイト上で検索できるようになっている。 これは望ましい行動ではない。

Environment

  • DXP 7.2

解決策

  • これは https://github.com/liferay/liferay-portal/blob/master/modules/apps/journal/journal-web/src/main/resources/META-INF/resources/article/search.jsp#L23からハードコードされた動作である。
  • つまり、これを変更したい場合は、Feature Request(機能リクエスト)を提出するのが最善の方法です。 そうすれば、ハードコードされた値を以下のいずれかにするかどうかを、製品チームが決定できるようになります:
    • 製品チームは、ハードコードされた値を反転させるか、コンフィギュレーション可能にするか、計算で求めるかを決定する必要がある。
    • もしこれを算定すべきと判断した場合、算定条件を決める必要がある。
    • もしコンフィギュラブルを採用するのであれば、コンフィギュレーションの範囲を決める必要がある。

Did this article resolve your issue ?

Legacy Knowledge Base