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

コンテンツページでテーマ埋め込みポートレットを設定できない

written-by

Kanchan Bisht

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

問題

  • ポートレットを編集することはできません。
  • 再現するための手順
    1) 7.2 vanilla を最新の FP でセットアップし、サーバーを起動します
    2) yo liferay-theme で最小テーマ 'my-liferay-theme' を作成します
    3) テーマのルートフォルダに cd して gulp build
    4) portal_normal.ftl を my-liferay-theme/build/templates から my-liferay-theme/src/templates にコピーします(templates ディレクトリがない場合は作成します)
    5) my-liferay-theme/src/templates/portal_normal.ftl を編集してコンテンツセクションにこのスニペットを追加します:
    <@liferay_portlet["runtime"]
    portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet" />
    (https://help.liferay.com/hc/en-us/articles/360028746512-Embedding-a-Portlet-by-Portlet-Name)
    6) gulp build でテーマをコンパイルし、my-liferay-theme/dist/my-liferay-theme.war を liferay/deploy フォルダに配置します
    7) Liferay でコンテンツページを作成します
    8) コンテンツページで、右側のツールバーで Look and Feel > このページの特定の外観を定義します > Change Current Theme > My Liferay Theme > Save
    9) Web Content ページに表示することが確認されました。 その上にマウスを置くと、編集を試みることができます(表示するウェブコンテンツを選択するなど)
    期待される動作: ポートレットが編集可能になる
    観察された動作: インターフェイス上のメッセージがポップアップし、設定を変更することができなくなります。
    This area is defined by the theme. To change theme settings go to the Look and Feel configuration in the sidebar.

Environment

  • Liferay DXP 7.2

解決策

  • この動作は、DXP 7.2 fix-pack-12およびそれ以下のバージョンで既知の問題ですが、fix-pack-13で対処しています。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base