legacy-knowledge-base
公開されました Jun. 30, 2025

カスタム テーマを使用する場合、ウィジェットにはすべての構成オプションがありません。

written-by

Christopher Lui

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

問題

新しく作成したテーマをサイトのページのルック アンド フィールに適用した後、ウィジェットを構成しようとすると、アクセス許可と構成テンプレートしか表示されません。

Environment

  • Liferay DXP 7.4

解決策

テーマを作成するとき、portlet.ftl は Classic テーマとは少し異なり、ドロップダウン メニューに違いが生じます。 次のようなコードでそれらを作成します。

<@liferay_portlet["icon-options"]

/osgi/marketplace/Liferay Foundation - Liferay Frontend Theme - Impl.lpkg -> classic-theme-$version.war -> /templates/portlet.ftl にある Liferay のクラシック テーマ portlet.ftl を確認すると、

コードは次のとおりです。

<@liferay_frontend["icon-options"]

クラシック テーマと同じメニュー オプションを追加するには:

1. テーマ .war を開き、templates/portlet.ftl に移動します。

2. のすべてのインスタンスを変更します<@liferay_portlet["icon-options"] から <@liferay_frontend["icon-options"]

追加情報

  • liferay-portlet は 7.4 で廃止され、liferay-frontend に置き換えられました。0 https://learn.liferay.com/reference/latest/en/dxp/taglibs/util-taglib/liferay-portlet/icon-options.html 参照してください。

did-this-article-resolve-your-issue

legacy-knowledge-base