管理テーマを変更するにはどうすればよいですか?
written-by
Daniel Mijarra
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
ご覧のページは、お客様の利便性のために一部機械翻訳されています。また、ドキュメントは頻繁に更新が加えられており、翻訳は未完成の部分が含まれることをご了承ください。最新情報は都度公開されておりますため、必ず英語版をご参照ください。翻訳に問題がある場合は、こちら までご連絡ください。
問題
たとえば、Web コンテンツ エディションのルック アンド フィールを変更するなど、admin-theme のいくつかの側面を変更する必要がある場合があります。
解決策
admin-theme は直接変更できません。admin-theme に基づいて新しいテーマを作成してから、この新しいカスタム admin-theme を変更する必要があります。
custom-admin-theme
を作成する手順:
この記事 テーマの作成 で説明されている手順に従って、新しいテーマを作成します。 custom-admin-theme
がその名前として使用されます。
次のフォルダーを LIFERAY_SRC_7_x/modules/apps/frontend-theme/frontend-theme-admin/src
から custom-admin-theme
の /src
フォルダーにコピーします。
CSS Templates Images
/src/WEB-INF/liferay-look-and-feel.xml
を編集し、次のように、タグ <theme>...</theme>
の間に含まれる xml タグを <control-panel-theme>true</control-panel-theme>
に置き換えます。
<?xml version="1.0"?> <!DOCTYPE look-and-feel PUBLIC "-//Liferay//DTD Look and Feel 7.1.0//EN" "http://www.liferay.com/dtd/liferay-look-and-feel_7_1_0.dtd"> <look-and-feel> <compatibility> <version> 7.1.0+ </version> </compatibility> <theme id="custom-admin-theme" name="custom-admin-theme"> <control-panel-theme> true </control-panel-theme> </theme> </look-and-feel>
必要な変更を加えます。 たとえば、一部の CSS を変更するには、 /src/css/_custom.scss
を編集し、必要な CSS ルールを追加または変更します。
custom-admin-theme
コンパイルし、Liferay にデプロイします。
新しいテーマを適用するには、 コントロール パネル > 構成 > インスタンス設定 > その他 > ルック アンド フィール > デフォルト コントロール パネル テーマ にアクセスし、 custom-admin-theme
を選択します。
did-this-article-resolve-your-issue