Legacy Knowledge Base
Published Jun. 30, 2025

Category parent-child relationships and asset publisher settings

Written By

Shimada Taro

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Category parent-child relationships and asset publisher settings

Issue

  • When the following procedure is followed, the contents displayed will be different for each user.

Procedure:

1. Add a custom field to "User" with the following settings
入力フィールド
フィールド名: region
2. From the custom field permission settings created in step 1, grant "View" permission to "User"
3. Global Site Category Settings > Go to Categories and add a vocabulary named "region"
Add a category to "region" with the following hierarchical structure
APAC
|-JP
|-AU

4. Add a new site (test site) and add a widget page
5. Add web content with the following settings

Web content A: Metadata: "region":APAC
Web content B: Metadata: "region":AU

6. Add users with the following settings

user1:
メンバーシップ: test site
region (カスタムフィールド): APAC

user2:
メンバーシップ: test site
region (カスタムフィールド): JP

7. Add asset publisher to page
8. Change the asset publisher settings as follows

データ取得方法: 動的
ソース: データのエントリタイプ: Webコンテンツ
カスタムユーザー属性: region

9. Log in as user1 and user2 and view the page where the asset publisher is configured

Results:

For user1:
both web contents are displayed.

For user2:
Web content is not displayed.

Environment

  • DXP 7.0+

solution

  • This behavior is the expected behavior.
  • user1 can display web content with parent and child categories because the custom field has the same value as the parent category.
  • user2 has the child category "JP" in the custom field, but there is no web content with the category "JP" set.Therefore, content is not displayed.
  • This behavior is related to the property "asset.categories.search.hierarchical".
  • The default setting is "true", which means that the category parent-child relationship is enabled.
  • If you set "asset.categories.search.hierarchical=false", the parent-child category relationship will be disabled.
    In this case, only content with categories set in custom fields will be displayed on the Asset Publisher.
Did this article resolve your issue ?

Legacy Knowledge Base