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

ウィジェットのないコンテンツ ページでは、「AllPortletsReady」がトリガーされる必要があります

Written By

Kanchan Bisht

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.

問題

  • 次の JS を使用する JavaScript でフラグメントを作成した場合:
    • Liferay.on ('allPortletsReady', function() { console.log('allPortletsReady からこんにちは');}); で、コンテンツ ページにポートレットがある場合、フラグメントは意図したとおりに機能します。
    • ただし、「allPortletsReady」が起動されないため、ポートレットのないコンテンツ ページがある場合、フラグメントは失敗します。
    • 注: 次のカスタム テーマをデプロイします no-style-theme.war, およびテーマをサイト ページに適用します

Environment

  • Liferay DXP 7.2

解決策

  • 説明されている動作は、バグではなく、製品の改善と見なされます。
    その結果、Feature Request チケットが作成され、 here に従って、ポートレットを持たないコンテンツ ページでも AllPortletsReady 状態が発生するように要求できます。

追加情報

  • 要求が進行するにつれて、それを監視してチェックすることができます。 製品チームがリクエストを承認し、機能が実装されると、リクエストのステータスは '完了' に変わります。その後、チケットを送信してホットフィックスを探すことができます。 それまでの間、チケットをフォローして、 [この問題に投票]をクリックして、この機能に投票することができます。
  • ユーザーは、軽量ポートレットをコンテンツ ページに使用できるテーマに追加するか、未使用のポートレットをコンテンツ ページに追加するという回避策を使用して、allPortletsReady が計画どおりにトリガーされるようにすることができます。
Did this article resolve your issue ?

Legacy Knowledge Base