legacy-knowledge-base
公開されました Sep. 10, 2025

フラグメントの背景色について、拡張ポイントはありますか?

written-by

Alfonso Crisci

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

learn-legacy-article-disclaimer-text

問題

  • フラグメントのセクションビルダー-レイアウト-セクションを使用中に、カラーパレットが表示され、背景色の選択肢が表示されます。

    palette.png

    カラーパレットを変更する方法、例えば新しい色を追加することは可能でしょうか?

Environment

  • Liferay DXP 7.0+

解決策

本記事執筆時点では延長ポイントはございません。 この要件を解決することは、フルカスタマイズタスクとみなされます。 以下の解決策はカスタマイズが必要なため、チームの判断で実施する必要があります。 Liferay サポートは、カスタマイズの設計や実装を支援することはできません。

  • 一つの方法として、https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/layout/layout-content-page-editor-web/src/main/resources/META-INF/resources/view.jsp#L35 をオーバーライドして、 SoyContext map に異なる値を渡し、要素 themeColorsCssClasses に必要な色を含ませることが考えられます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base