legacy-knowledge-base
公開されました Jul. 2, 2025

カスタマイズされたコントロールパネルのテーマを適用する

written-by

Laura Li

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

この記事では、Liferay DXP 7.0でコントロールパネルにカスタムテーマを適用する2つの方法について説明します。

解決策

コントロールパネル

  1. portalが起動したら、カスタムテーマのwarファイルをデプロイします。 /WEB-INF/liferay-look-and-feel.xmlに以下が追加されていることを確認する。
    <control-panel-theme>true</control-panel-theme>
  2. コントロールパネル > 設定 > インスタンス設定 > その他 > 見た目 > デフォルトのコントロールパネルのテーマ に移動すると、ドロップダウンリストにカスタムテーマが表示されていることが確認できます。
  3. カスタムテーマを選択し、変更を保存します。

Portal-ext.properties(ポータルエクストプロパティ

  1. portal-ext.properties に以下のプロパティを追加し、テーマIDを設定します。
        #
        # Set the theme of the layout.
        #
    control.panel.layout.regular.theme.id=
    
  2. ポータルを起動し、カスタムテーマを配置します。 liferay-look-and-feel.xmlでコントロールパネルのテーマを宣言する必要はないことに注意してください。
  3. コントロールパネル > 設定 > インスタンス設定 > その他 > 見た目 > デフォルトのコントロールパネルのテーマに移動すると、カスタムテーマがすでに設定されていることがわかります。
did-this-article-resolve-your-issue

legacy-knowledge-base