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

フラグメント内のコンテンツページでデコレーターを適用する

Written By

Gábor Komáromi

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.

問題

  • Webコンテンツ表示など、ウィジェットが埋め込まれたフラグメントを使用すると、埋め込みウィジェットにデフォルトのテーマデコレーターが適用されない。

Environment

  • Liferay DXP 7.2+

解決策

  • フラグメント 内のコンテンツページでデコレータを適用するという望ましいシナリオは、以下の理由により、設計上利用できません:
    フラグメントは コンテンツページに適用するもので、ポートレットデコレーターは ウィジェットページ で使用することを想定しています。

追加情報

  • 2つのアイデアがあり、それによって望ましい結果に近づくことができるかもしれません。 ただし、いずれもサポートカバレッジの範囲には属さない:
    • ウィジェットページをコンテンツページに変換することで、デコレータも変換されるようになりました。 ただ、この方法だと、やはりデコレータの設定が後から調整できなくなる。
    • コンテンツページにはさまざまなスタイリングオプションがあるため、必要なスタイリングを別の方法で適用する。
      このような場合、コンテンツページに関する以下のドキュメントが役に立ちます:
      コンテンツページの作成
      コンテンツページの要素
  • また、より具体的な開発指導が必要な場合、営業担当者は、グローバルサービスチームが提供するコンサルタントサービスの機会を発見するための素晴らしいリソースとなります。

Did this article resolve your issue ?

Legacy Knowledge Base