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

Liferay個人サイトを無効にする

written-by

Pooja Bhambani

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

問題

  • Liferay の個人サイトを無効にする方法は?

環境

  • Liferay DXP 7.2
  • Liferay DXP 7.3

解決

  • このプロパティはデフォルトで true として有効になっていますが、個人用サイト 無効にするには、以下のプロパティを portal-ext.properties ファイルに追加します。
    # Set whether or not public layouts are enabled. 
    # If public layouts are not enabled, then the property
    # "layout.user.public.layouts.auto.create" is assumed to be false.
    # Env: LIFERAY_LAYOUT_PERIOD_USER_PERIOD_PUBLIC_PERIOD_LAYOUTS_PERIOD_ENABLED
    #
    layout.user.public.layouts.enabled=false
    layout.user.private.layouts.enabled=false
  • また、Liferay は、ユーザー登録または作成時に個人用サイトを自動的に作成します。 これを回避するには、次のプロパティを追加する必要があります。
    # Env: LIFERAY_LAYOUT_PERIOD_USER_PERIOD_PRIVATE_PERIOD_LAYOUTS_PERIOD_AUTO_PERIOD_CREATE
    layout.user.public.layouts.auto.create=false

    layout.user.private.layouts.auto.create=false
    注: 上記のプロパティを追加した後、プロパティを有効にするためにサーバーを再起動する必要があります。

追加情報

  • 個人用サイトの公開ページ セットと非公開ページ セットは別々に処理されます。 1 つのページ セットを有効のままにして、他のページ セットを無効にするのは簡単です。
  • 最初にユーザーがインスタンス で個人用サイトを有効にしてから無効にした場合、既存の個人用サイトはユーザーが次回サインインするまでインスタンスに残り、その時点で削除されます。

did-this-article-resolve-your-issue

legacy-knowledge-base