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

Liferayの共有URL使用時のウィジェット外観のカスタマイズ

written-by

Antonio Ortega

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 PortalとLiferay DXP。

解決策

  • ウィジェットが Liferay 内でレンダリングされるとき、その外観は現在のテーマの portal_normal.ftlportlet.ftl のコードによって定義されることになります。 unstyled themeから、それらのテンプレートを参考としてリンクしています。
  • しかし、同じウィジェットを上記のコードスニペットでLiferayからレンダリングすると、その外観は portal_pop_up.ftl テンプレートに依存することになります。
  • また、カスタマイズの参考にするために、 init.ftl テンプレートで使用できる変数( theme_display, portlet_display, layout_set , portlet_id など)を確認することをおすすめします。
did-this-article-resolve-your-issue

legacy-knowledge-base