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

ユーザーのプライベートページにポートレットをデフォルトで追加する。

written-by

Marco Abamonga

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
この記事では、ユーザーのプライベートページにポートレットをデフォルトで追加する方法について説明します。

解決策

これを実現する一つの方法は、必要なポートレットをあらかじめ設定したページをポータルのどこかに作成し、そのページのLARをエクスポートすることです。

次に、 portal-ext.propertiesで以下のプロパティを使用し、larファイルの場所を指すことを確認する:

#
# Specify a LAR file that can be used to create the user private layouts. If
# this property is set, the previous layout properties will be ignored.
#
default.user.private.layouts.lar=${liferay.home}/deploy/default_user_private.lar

既存のユーザーについては、現在のプライベートページを削除し、再度サインインしてもらう。 念のため、お客様にはご自身の環境のバックアップをお取りいただくようお願いいたします。

この時点で、プライベートページのコンテンツは、もはや元のソースに縛られることはありません。 ユーザーのプライベートページにあるポートレットは、LARファイルの内容とリンクしているのではなく、エクスポートされたLARにあったポートレットとコンテンツをコピーしたものです。

did-this-article-resolve-your-issue

legacy-knowledge-base