Legacy Knowledge Base
公開されました Jul. 2, 2025

配信範囲が特定のサイトに設定されている場合でも、すべてのサイトにアラートが表示されます

Written By

Justin Mann

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

  • Liferay DXP 7.3

解決策

  • アラートにアラート ウィジェットを使用するときに選択された配布範囲は、そのサイトに関してユーザーが所有するメンバーシップとロールに関連付けられます。配布範囲で指定された実際のサイト自体、またはアラート ウィジェットが配置されているサイトではありません。位置した。
  • たとえば、アラート ウィジェットがサイト A のページに配置され、サイト A を指す配布スコープでアラートが作成された場合、このアラートは、アラート ウィジェットを含むページを持つすべてのサイトに表示されます。はサイト A のメンバーです。サイト A に属しているすべてのユーザーは、そのサイトのメンバーであるため、アラート ウィジェットが存在するサイトに関係なく、アラート ウィジェットを含むすべてのページにアラートが表示されます。
  • これは、サイト A にアクセスするゲスト ユーザーがサイト A のメンバーではないため、アラートが表示されないのと同じ理由です。
  • アラート タイプの投稿を特定のサイトに限定したい場合は、アナウンス ウィジェットがそのユース ケースにより適しています。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base